skip to Main Content

Getting return value of null every time to Controller – Asp.net

Receiving Null value every time to Controller. How can I solve this? Url: http://localhost:45801/Account/Login?ReturnUrl=%2Forder%2Fplaceorder Code: [HttpPost] public async Task<IActionResult>Login(UserLoginVM userLoginVM,string ReturnUrl) { if (ModelState.IsValid) { var result = await signInManager.PasswordSignInAsync (userLoginVM.LoginId, userLoginVM.Password, userLoginVM.RememberMe, false); if(result.Succeeded) { if(!string.IsNullOrEmpty(ReturnUrl)) { return RedirectToAction(ReturnUrl);…

VIEW QUESTION

Saving JSON to DataTable – Asp.net

I need to save data retrieved from API to a DataTable. JSON which is returned from API can't be deserialized directly to DataTable using this code: DataTable dt = (DataTable)JsonConvert.DeserializeObject(json, (typeof(DataTable))); I got an error: Unexpected JSON token when reading…

VIEW QUESTION
Back To Top
Search