public IHttpActionResult GetCustomPage(string id) { CustomPageService customPageService = new CustomPageService(); var pages = customPageService.GetAllPagesByClientUrl(id, db); return(Ok(pages)); }
public IHttpActionResult GetPagesByClient(string id, NewClientWebPagesDBEntities db) { CustomPageService customPageService = new CustomPageService(); // var content = webContentService.GetWebContentByPageId(id, db); var pages = customPageService.GetAllPagesByClientUrl(id, db); return(Ok(pages)); }