public IActionResult Edit(int id) { var animal = _servicoAnimal.GetById(id); HttpContext.Session.SetInt32("IdArquivo", animal.FotoArquivo.Id); return(View("Edit", animal)); }
public IActionResult ContatoAdotar(int animalId) { var animal = _serviceAnimal.GetById(animalId); var adotaAnimal = new AdotarDTO() { Animal = new AnimalDTO() { Id = animal.Id, RESA = animal.RESA, Nome = animal.Nome, FotoArquivo = new ArquivoDTO() { Id = animal.FotoArquivo.Id, Path = animal.FotoArquivo.Path } } }; return(View("ContatoAdotar", adotaAnimal)); }