コード例 #1
0
        private PositionAssignmentService CreatePositionAssignmentService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new PositionAssignmentService(userId);

            return(service);
        }
コード例 #2
0
        // GET: PositionAssignment
        // PositionAssignment/Index
        public ActionResult Index()
        {
            PositionAssignmentService service = CreatePositionAssignmentService();
            var model = service.GetPositionAssignment();

            return(View(model));
        }