Esempio n. 1
0
 public IHttpActionResult PostEnableECommerce(SiteEnabledBinding Model)
 {
     SiteService.EnableEcommerce(Model);
     return Ok();
 }
Esempio n. 2
0
 public IHttpActionResult PostEnableBlog(SiteEnabledBinding Model)
 {
     SiteService.EnableBlog(Model);
     return Ok();
 }
Esempio n. 3
0
 public void EnableBlog(SiteEnabledBinding Model)
 {
     using (var _c = db)
     {
         var _Model = _c.Sites.Where(m => m.SiteID == Model.SiteID).SingleOrDefault();
         _Model.Blog = Model.Enabled;
         _c.SaveChanges();
     }
 }