public async Task <IHttpActionResult> GetPadreUnidad(string Id) { try { log.Info(new MDCSet(this.ControllerContext.RouteData), new InfoException(Id)); var campo = await _repository.GetByIdWithFather(Id); return(Ok(campo)); } catch (Exception e) { log.Error(new MDCSet(this.ControllerContext.RouteData), e); return(InternalServerError(e)); } }