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)); }