Esempio n. 1
0
        public static IEnumerable <SelectListItem> FillddlLeaveType()
        {
            var service    = new LeaveSetupService();
            var leaveTypes = service.GetAll();
            var listitems  = leaveTypes.Select(x =>

                                               new SelectListItem
            {
                Text  = x.LeaveName,
                Value = x.Id.ToString()
            });

            return(listitems);
        }
Esempio n. 2
0
        public static IEnumerable<SelectListItem> FillddlLeaveType()
        {
            var service = new LeaveSetupService();
            var leaveTypes = service.GetAll();
            var listitems = leaveTypes.Select(x =>

                new SelectListItem
                {
                    Text = x.LeaveName,
                    Value = x.Id.ToString()
                });
            return listitems;
        }
 public LeaveSetupsController()
 {
     Service= new LeaveSetupService();
 }
Esempio n. 4
0
 public LeaveSetupsController()
 {
     Service = new LeaveSetupService();
 }