// GET: Perros public async Task <ActionResult> Index() { try { return(View(await _repository.GetAll().ConfigureAwait(false))); } catch (Exception ex) { throw new PerrosException("Error al recuperar todos los perros.", ex); } }
// GET: Perros public async Task <ActionResult> Index() { return(View(await repositorio.GetAll())); }