User1661386615 posted
this is code of with out pattern repository
var expenseOrderDetails = db.ExpenseOrderDetails.Include(e => e.ExpenseOrder).Include(e => e.ExpenseType).Include(e => e.Vendor);
return View(await expenseOrderDetails.ToListAsync());
this is the code of with Unit of work but it give error i dnt know why kindly suggest me the correct way to write a query for it in Pattern Respository
var expenseOrderDetails=_unitOfWork.ExpenseOrderDetails.Include(e => e.ExpenseOrder).Include(e => e.ExpenseType).Include(e => e.Vendor);
return View(await _unitOfWork.ExpenseOrderDetails.GetAllAsync());