Example #1
0
 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();
     }
 }
Example #2
0
 public IHttpActionResult InMenu(ContentBoolean Model)
 {
     _ContentService.InMenu(Model, User.Identity.GetUserId());
     return(Ok());
 }
Example #3
0
 public IHttpActionResult ShowInContent(ContentBoolean Model)
 {
     _ContentService.ShowInContent(Model, User.Identity.GetUserId());
     return(Ok());
 }
Example #4
0
 public IHttpActionResult Enabled(ContentBoolean Model)
 {
     _ContentService.Enable(Model, User.Identity.GetUserId());
     return(Ok());
 }
Example #5
0
 public ExpressionIssue TryEvaluate(IContentNode input, out IContentNode result)
 {
     result = new ContentBoolean(IsMatch(input));
     return(null);
 }