Пример #1
0
        public async Task <IActionResult> Create(Provider provider, Company company)
        {
            if (!ModelState.IsValid)
            {
                return(View(provider));
            }
            await _ProviderService.InsertAsync(provider, company);

            return(RedirectToAction(nameof(Index)));
        }