Пример #1
0
 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();
     }
 }
Пример #2
0
 public IHttpActionResult ShowInContent(ContentBoolean Model)
 {
     _ContentService.ShowInContent(Model, User.Identity.GetUserId());
     return Ok();
 }
Пример #3
0
 public IHttpActionResult InMenu(ContentBoolean Model)
 {
     _ContentService.InMenu(Model, User.Identity.GetUserId());
     return Ok();
 }
Пример #4
0
 public IHttpActionResult Enabled(ContentBoolean Model)
 {
     _ContentService.Enable(Model, User.Identity.GetUserId());
     return Ok();
 }