示例#1
0
        public IActionResult InsertImpianto()
        {
            var model = new InsertImpiantoViewModel();

            model.clientidaiqualiscegliere   = _data.GetClients();
            model.regionidallequaliscegliere = _data.GetRegions();
            return(PartialView(model));
        }
示例#2
0
        public IActionResult Index()
        {
            var model = new ViewModelClient();

            model.Customers = _data.GetClients();
            return(View(model));
        }
示例#3
0
        public IActionResult AddUser()
        {
            UserViewModel model = new UserViewModel();

            model.ApplicationRoles = roleManager.Roles.Select(r => new SelectListItem
            {
                Text  = r.Name,
                Value = r.Id
            }).ToList();

            model.ClientList = _data.GetClients();
            return(PartialView("_AddUser", model));
        }