Exemplo n.º 1
0
 public void RevertUserTheme(string UserID, string ModuleTypeID)
 {
     WTF.Theme.Entity.Theme_UserTheme entity = this.CurrentEntities.theme_usertheme.FirstOrDefault <WTF.Theme.Entity.Theme_UserTheme>(s => (s.UserID == UserID) && (s.ModuleTypeID == ModuleTypeID));
     if (entity != null)
     {
         this.CurrentEntities.DeleteObject(entity);
         this.CurrentEntities.SaveChanges();
     }
 }
Exemplo n.º 2
0
 public void AddTotheme_usertheme(Theme_UserTheme theme_UserTheme)
 {
     base.AddObject("theme_usertheme", theme_UserTheme);
 }
Exemplo n.º 3
0
 public void UpdateUserTheme(WTF.Theme.Entity.Theme_UserTheme objTheme_UserTheme)
 {
     this.CurrentEntities.SaveChanges();
 }
Exemplo n.º 4
0
 public void InsertUserTheme(WTF.Theme.Entity.Theme_UserTheme objTheme_UserTheme)
 {
     this.CurrentEntities.AddTotheme_usertheme(objTheme_UserTheme);
     this.CurrentEntities.SaveChanges();
 }