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

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