public static IEnumerable<SelectListItem> FillddlEthenicGroup() { var service = new EthenicService(); var ethenics = service.GetAll(); var listitems = ethenics.Select(x => new SelectListItem { Text = x.EthenicGroup, Value = x.Id.ToString() }); return listitems; }
public static IEnumerable <SelectListItem> FillddlEthenicGroup() { var service = new EthenicService(); var ethenics = service.GetAll(); var listitems = ethenics.Select(x => new SelectListItem { Text = x.EthenicGroup, Value = x.Id.ToString() }); return(listitems); }
public EthenicsController() { Service = new EthenicService(); }