public void InMenu(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.InMenu = Model.Boolean; _c.SaveChanges(); } }
public IHttpActionResult InMenu(ContentBoolean Model) { _ContentService.InMenu(Model, User.Identity.GetUserId()); return(Ok()); }
public IHttpActionResult ShowInContent(ContentBoolean Model) { _ContentService.ShowInContent(Model, User.Identity.GetUserId()); return(Ok()); }
public IHttpActionResult Enabled(ContentBoolean Model) { _ContentService.Enable(Model, User.Identity.GetUserId()); return(Ok()); }
public ExpressionIssue TryEvaluate(IContentNode input, out IContentNode result) { result = new ContentBoolean(IsMatch(input)); return(null); }