public ActionResult Index() { var weekendView = new WeekendViewModel() { WeekendHolidayDayList = new SelectList(_weekendService.GetDayList(), "Value", "Text"), WeekendCategoryList = new SelectList(_weekendCategoryService.GetAll(), "Id", "Name") }; return(View(weekendView)); }
public ActionResult Index(long?eid) { var employeeLeaveInfoView = new EmployeeLeaveInformationViewModel { AnnualHolidayCategoryList = new SelectList(_annualHolidayCategoryService.GetAll(), "Id", "Title"), WeekendCategoryList = new SelectList(_weekendCategoryService.GetAll(), "Id", "Name"), LeavePolicyList = new SelectList(_leavePolicyService.GetAll(), "Id", "PolicyName"), }; return(View(employeeLeaveInfoView)); }
public ActionResult List([DataSourceRequest] DataSourceRequest request) { var weekendCategoryList = _weekendCategoryService.GetAll().Where(w => !w.IsDeleted).ToList(); return(Json(weekendCategoryList.ToDataSourceResult(request))); }