// GET: Positions public ActionResult Index() { var model = new ViewModels.Position.PositionIndexDataViewModel { Positions = _positionService.GetAllPositions(), }; return(View(model)); }
public ActionResult EmployeesAssignedToPosition(int positionId) { var model = new ViewModels.Position.PositionIndexDataViewModel { Positions = _positionService.GetAllPositions(), EmployeesAssignedToPosition = _positionService.GetEmployeesForPosition(positionId) }; return(View("Index", model)); }