public void ClearThemeSession(int themeID) { List<ThemeArea> areas = new ThemeArea().GetAll(); HttpContext.Current.Session.Remove(themeID + "basefiles"); foreach (ThemeArea area in areas) { string keyname = themeID + area.controller + "files"; HttpContext.Current.Session.Remove(keyname); } }
partial void DeleteThemeArea(ThemeArea instance);
partial void InsertThemeArea(ThemeArea instance);
partial void UpdateThemeArea(ThemeArea instance);
public ThemeArea Get(int id = 0) { ThemeArea area = new ThemeArea(); EcommercePlatformDataContext db = new EcommercePlatformDataContext(); area = db.ThemeAreas.Where(x => x.ID.Equals(id)).FirstOrDefault(); return area; }