public async Task <IActionResult> Details(int Id) { var spiderModel = await _spiderService.Get(Id); var animalTaxonomyModel = await _animalTaxonomyService.Get(spiderModel.AnimalTaxonomyId); return(View(SpiderHelpers.ConvertSpiderAndAnimalTaxonomyToView(spiderModel, animalTaxonomyModel))); }
public async Task <IActionResult> Details(int Id) { var model = await _animalTaxonomyService.Get(Id); return(View(AnimalTaxonomyHelpers.ConvertToView(model))); }