private List <Help> HydrateHelpList() { List <Help> helpList = new List <Help>(); helpList = _helpService.GetByUrl(this.Request.Url.AbsolutePath); return(helpList); }
public HttpResponseMessage GetByUrl([FromUri] string pageUrl) { try { ItemsResponse <Help> resp = new ItemsResponse <Help>(); resp.Items = _helpService.GetByUrl(pageUrl); return(Request.CreateResponse(HttpStatusCode.OK, resp)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex)); } }