public IHttpActionResult Get(int pageId, int subPageId) { SubContentService subContentService = new SubContentService(); var content = subContentService.GetWebContentByPageIdAndSubPageId(pageId, subPageId, db); return(Ok(content)); }
public IHttpActionResult Post([FromBody] Models.WebContent webContent) { SubContentService subContentService = new SubContentService(); subContentService.UpsertSubContent(webContent, db); return(CreatedAtRoute("DefaultApi", new { id = webContent.Id }, webContent)); }