public async Task <IActionResult> Add(AnimalTaxonomyView result)
        {
            if (!ModelState.IsValid)
            {
                return(View(result));
            }

            await _animalTaxonomyService.Create(AnimalTaxonomyHelpers.ConvertToModel(result));

            return(RedirectToAction("List"));
        }
        public async Task <IActionResult> Edit(AnimalTaxonomyView result)
        {
            if (!ModelState.IsValid)
            {
                return(View(result));
            }

            var model = await _animalTaxonomyService.Get(result.Id);

            var newModel = AnimalTaxonomyHelpers.MergeViewWithModel(model, result);

            await _animalTaxonomyService.Update(newModel);

            return(RedirectToAction("List"));
        }
        public async Task <IActionResult> Edit(int Id)
        {
            var model = await _animalTaxonomyService.Get(Id);

            return(View(AnimalTaxonomyHelpers.ConvertToView(model)));
        }