Пример #1
0
        public async Task <IActionResult> CreateBreed(CreateBreedViewModel model)
        {
            if (this.ModelState.IsValid)
            {
                await _specieRepository.CreateBreedAsync(model);

                return(this.RedirectToAction($"Details/{model.SpecieId}"));
            }

            return(this.View(model));
        }