Exemplo n.º 1
0
        public static IEnumerable<SelectListItem> FillddlDesignation()
        {
            var service = new DesignationService();
            var designation = service.GetAll();
            var listitems = designation.Select(x =>

                new SelectListItem
                {
                    Text = x.DesignationName,
                    Value = x.Id.ToString()
                });
            return listitems;
        }
Exemplo n.º 2
0
        public static IEnumerable <SelectListItem> FillddlDesignation()
        {
            var service     = new DesignationService();
            var designation = service.GetAll();
            var listitems   = designation.Select(x =>

                                                 new SelectListItem
            {
                Text  = x.DesignationName,
                Value = x.Id.ToString()
            });

            return(listitems);
        }
Exemplo n.º 3
0
        // GET: Designation
        public ActionResult Index()
        {
            var employees = Service.GetAll();

            return(View(employees));
        }