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)); }
public ActionResult CreateAdmin() { JobCardManager manager = new JobCardManager(); var jobCardView = new JobCardAdminView() { Customers = manager.GetAllCustomers(false), Designers = manager.GetAllDesigners(false), JobTypes = manager.GetAllJobTypes(false), Materials = manager.GetAllMaterials(false) }; return(View(jobCardView)); }
public ActionResult Index() { JobCardManager manager = new JobCardManager(); return(View(manager.GetAllDesigners(false))); }