private PositionAssignmentService CreatePositionAssignmentService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new PositionAssignmentService(userId); return(service); }
// GET: PositionAssignment // PositionAssignment/Index public ActionResult Index() { PositionAssignmentService service = CreatePositionAssignmentService(); var model = service.GetPositionAssignment(); return(View(model)); }