Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public MaterialRequestModel(MaterialRequest order, Employee aConcernedEmployee, Employee anOrderedbyEmployee, Office anOffice)
- public ActionResult Index()
- {
- IQueryable<MaterialRequest> query= DB.MaterialRequest
- .Where(m => m.MaterialStatusId == MatStatus.A9Cancelled || m.MaterialStatusId == MatStatus.A8Complete);
- List<MaterialRequestModel> model= new List<MaterialRequestModel>();
- foreach (MaterialRequest req in query)
- {
- model.Add(new MaterialRequestModel(req, DB.Employees.Find(req.ConcernedEmployeeId), DB.Employees.Find(req.OrderedByEmployeeId), DB.Offices.Find(req.OfficeId)));
- }
- return View(model);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement