Пример #1
0
        public async Task <IActionResult> Create(Tenant tenant)
        {
            if (ModelState.IsValid)
            {
                await _dataAccess.AddTenant(tenant);

                return(RedirectToAction("Index"));
            }

            return(View(tenant));
        }