public ActionResult Delete(int id) { JobCardManager manager = new JobCardManager(); JobCardView jobCard = manager.GetJobCard(id, true); jobCard.Users = manager.GetAllUsers(); jobCard.Customers = manager.GetAllCustomers(true); jobCard.Designers = manager.GetAllDesigners(true); return(View(jobCard)); }
public ActionResult History(int id) { JobCardManager manager = new JobCardManager(); JobCardView jobCard = manager.GetJobCard(id, true); jobCard.Customers = manager.GetAllCustomers(true); jobCard.Designers = manager.GetAllDesigners(true); jobCard.JobTypes = manager.GetAllJobTypes(true); jobCard.Materials = manager.GetAllMaterials(true); jobCard.Users = manager.GetAllUsers(); return(View(jobCard)); }