public ActionResult ProjectDetails(int id) { var model = new ProjectVM(); var mediator = new ProjectMediator(); model = mediator.GetProject(id); return(View("~/Views/Project/ProjectDetail.cshtml", model)); }
public ActionResult EditProject(int id) { var projectModel = new ProjectVM(); ViewBag.ControllerAction = "EditProject"; ViewBag.PageTitle = "Edit Project"; var mediator = new ProjectMediator(); var uMediator = new UserMediator(); projectModel = mediator.GetProject(id); projectModel.CompanyEmployees = uMediator.GetUsersByCompanyId(projectModel.CompanyId); return(View("~/Views/Project/ProjectForm.cshtml", projectModel)); }