public async Task <IHttpActionResult> GetByRU(string Id) { try { log.Info(new MDCSet(this.ControllerContext.RouteData), new InfoException(Id)); int rolbase = Convert.ToInt32(ConfigurationManager.AppSettings["RolBase"]); var persona = await _repository.GetByRU(Id, rolbase); return(Ok(persona)); } catch (Exception e) { log.Error(new MDCSet(this.ControllerContext.RouteData), e); return(InternalServerError(e)); } }