Beispiel #1
0
                                                    [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());
 }
Beispiel #3
0
 public IEnumerable <Evento> GetAll()
 {
     return(_eventoRepository.GetAll());
 }