private PlanItemService CreateService() { var userId = Guid.Parse(User.Identity.GetUserId()); var svc = new PlanItemService(userId); return(svc); }
public ActionResult Details(Guid id) { var service = CreateProjectService(); var model = service.GetProjectById(id); var svc2 = new PlanItemService(Guid.Parse(User.Identity.GetUserId())); model.PlanItems = svc2.GetPlanListItems(model.ProjectID); return(View(model)); }
public ActionResult Delete(Guid id) { var svc = new PlanItemService(Guid.Parse(User.Identity.GetUserId())); return(View(new PlanItemDelete(svc.GetPlanItemById(id)))); }