public void ShowInContent(ContentBoolean Model, string UserID) { using (var _c = db) { var _CP = _c.ContentProperties.Where(m => m.ContentPropertyID == Model.ContentPropertyID).SingleOrDefault(); Can(_CP.SiteID, UserID, _c); _CP.ShowInContent = Model.Boolean; _c.SaveChanges(); } }
public IHttpActionResult ShowInContent(ContentBoolean Model) { _ContentService.ShowInContent(Model, User.Identity.GetUserId()); return Ok(); }
public IHttpActionResult InMenu(ContentBoolean Model) { _ContentService.InMenu(Model, User.Identity.GetUserId()); return Ok(); }
public IHttpActionResult Enabled(ContentBoolean Model) { _ContentService.Enable(Model, User.Identity.GetUserId()); return Ok(); }