[HttpGet] public async Task <IHttpActionResult> GetAll() { try { var Evento = await _EventoRepo.GetAll(); return(Ok(Evento)); } catch (Exception e) { log.Error(new MDCSet(this.ControllerContext.RouteData), e); return(InternalServerError(e)); } }
public IEnumerable <Evento> Get() { return(_participanteRep.GetAll()); }
public IEnumerable <Evento> GetAll() { return(_eventoRepository.GetAll()); }