public HomeController() { _empService = new EmployeeService(); _countryService = new CountryService(); _stateService = new StateService(); _genderService = new GenderService(); _MaritalStatusService = new MaritalStatusService(); _DepartmentService = new DepartmentService(); }
public static IEnumerable <SelectListItem> FillddlMaritalStatus() { var service = new MaritalStatusService(); var maritalStatus = service.GetAll(); var listitems = maritalStatus.Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }); return(listitems); }
public MaritalStatusController() { Service = new MaritalStatusService(); }
public static IEnumerable<SelectListItem> FillddlMaritalStatus() { var service = new MaritalStatusService(); var maritalStatus = service.GetAll(); var listitems = maritalStatus.Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }); return listitems; }
public void TestInit() { context = new TestEcaContext(); service = new MaritalStatusService(context); }