Exemple #1
0
        public ActionResult ProjectDetails(int id)
        {
            var model    = new ProjectVM();
            var mediator = new ProjectMediator();

            model = mediator.GetProject(id);
            return(View("~/Views/Project/ProjectDetail.cshtml", model));
        }
Exemple #2
0
        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));
        }