Ejemplo n.º 1
0
        private List <Help> HydrateHelpList()
        {
            List <Help> helpList = new List <Help>();

            helpList = _helpService.GetByUrl(this.Request.Url.AbsolutePath);
            return(helpList);
        }
Ejemplo n.º 2
0
 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));
     }
 }