Exemple #1
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            var result = _Services.UserTypes()
                         .Select(a => new UserTypeItem
            {
                Id          = a.Id,
                Description = a.Description,
            }).ToList();
            var model = new UserTypeIndexViewModel
            {
                UserTypes = result,
            };

            return(View(model));
        }