skip to Main Content

Xunit in asp.net core

I'm new at asp.net and moq and xunit test, I want to create a test case for my asp.net project. I have the service file that is CRUD action, I have been written for Create Method it's Ok but at…

VIEW QUESTION

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