public IHttpActionResult PostEnableECommerce(SiteEnabledBinding Model) { SiteService.EnableEcommerce(Model); return Ok(); }
public IHttpActionResult PostEnableBlog(SiteEnabledBinding Model) { SiteService.EnableBlog(Model); return Ok(); }
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(); } }