コード例 #1
0
 public ActionResult Index(StaffModel model)
 {
     var staffModel = new StaffModel(staffService.GetStaff().Select(employee => new EmployeeDto(employee)),
         model.StatusFilter);
     return View(staffModel);
 }
コード例 #2
0
 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);
 }