Beispiel #1
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));
        }
Beispiel #2
0
        public ActionResult Index()
        {
            var annualHolidayView = new AnnualHolidayViewModel()
            {
                AnnualHolidayCategoryList = new SelectList(_annualHolidayCategoryService.GetAll(), "Id", "Title"),
                AnnualHolidayTypeList     = new SelectList(_annualHolidayService.GetAnnualHolidayType(), "Value", "Text"),
                AnnualHolidayDayList      = new SelectList(_annualHolidayService.GetDayList(), "Value", "Text")
            };

            return(View(annualHolidayView));
        }
        public ActionResult List([DataSourceRequest] DataSourceRequest request)
        {
            var annualHolidayCategoryList = _annualholidayCategoryService.GetAll();

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