Ejemplo n.º 1
0
                                                      public async Task <IHttpActionResult> GetById(int Id)
                                                      {
                                                          try{ log.Info(new MDCSet(this.ControllerContext.RouteData), new InfoException(Id));
                                                               var entity = await _entityRepo.GetById(Id);

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