public async Task <IHttpActionResult> GetByParent(int id) { try{ log.Info(new MDCSet(this.ControllerContext.RouteData), new InfoException(id)); var entities = await _entityRepo.GetByParent(id); return(Ok(entities)); } catch (Exception e) { log.Error(new MDCSet(this.ControllerContext.RouteData), e); return(InternalServerError(e)); } }