Exemple #1
0
                                                    [HttpGet][Authorize] public async Task <IHttpActionResult> GetAllAdmin()
                                                    {
                                                        try {
                                                            var Evento = await _EventoRepo.GetAllAdmin();

                                                            return(Ok(Evento));
                                                        }
                                                        catch (Exception e) { log.Error(new MDCSet(this.ControllerContext.RouteData), e);

                                                                              return(InternalServerError(e)); }
                                                    }