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 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(); }
public LeaveSetupsController() { Service = new LeaveSetupService(); }