Esempio n. 1
0
        public ActionResult Index()
        {
            var weekendView = new WeekendViewModel()
            {
                WeekendHolidayDayList = new SelectList(_weekendService.GetDayList(), "Value", "Text"),
                WeekendCategoryList   = new SelectList(_weekendCategoryService.GetAll(), "Id", "Name")
            };

            return(View(weekendView));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        public ActionResult List([DataSourceRequest] DataSourceRequest request)
        {
            var weekendCategoryList = _weekendCategoryService.GetAll().Where(w => !w.IsDeleted).ToList();

            return(Json(weekendCategoryList.ToDataSourceResult(request)));
        }