コード例 #1
0
        // GET: Positions
        public ActionResult Index()
        {
            var model = new ViewModels.Position.PositionIndexDataViewModel
            {
                Positions = _positionService.GetAllPositions(),
            };

            return(View(model));
        }
コード例 #2
0
        public ActionResult EmployeesAssignedToPosition(int positionId)
        {
            var model = new ViewModels.Position.PositionIndexDataViewModel
            {
                Positions = _positionService.GetAllPositions(),
                EmployeesAssignedToPosition = _positionService.GetEmployeesForPosition(positionId)
            };

            return(View("Index", model));
        }