public ActionResult Index(StaffModel model) { var staffModel = new StaffModel(staffService.GetStaff().Select(employee => new EmployeeDto(employee)), model.StatusFilter); return View(staffModel); }
public ActionResult Index(int? page, FilterStaff? filterStaff) { var staffModel = new StaffModel(staffService.GetStaff().Select(employee => new EmployeeDto(employee)), filterStaff ?? FilterStaff.Both, page ?? 0); return View(staffModel); }