public IActionResult Intake() { AnimalIntakeViewModel model = new AnimalIntakeViewModel(); try { model.SpeciesCollection = _speciesService.GetAll(); model.BreedCollection = _breedService.GetAll(); model.ColorCollection = _colorService.GetAll(); model.AnimalRestrictions = _animalRestrictionService.GetAll(); } catch (Exception ex) { ErrorViewModel error = new ErrorViewModel(); error.Message = ex.Message; return(RedirectToAction("Error", "Home", error)); } return(View(model)); }