Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public EthenicsController()
 {
     Service = new EthenicService();
 }
Esempio n. 4
0
 public EthenicsController()
 {
     Service = new EthenicService();
 }