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
        // GET: Ethenics
        public ActionResult Index()
        {
            var ethenics = Service.GetAll();

            return(View(ethenics));
        }