skip to Main Content

The expression is invalid inside an 'Include' operation, since it does not represent a property access: – Asp.net

Controller: [HttpGet] [Route("MIDKalorimetar/Delete/{Id}/{Id2}/{Id3}/{Id4}/{Id5}")] public async Task<IActionResult> Delete(DeleteKalorimetarVM modelVM) { var model = await _db.ParametriMjerila.Where(x => x.Id == modelVM.Id).Include(d => d.Id == modelVM.Id2).Include(x=>x.Id == modelVM.Id3).Include(x => x.Id == modelVM.Id4).Include(x => x.Id == modelVM.Id5).FirstOrDefaultAsync(); return PartialView("Delete", model); } [HttpPost] public async Task<IActionResult>…

VIEW QUESTION

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
Back To Top
Search