public static void UpdateSubscriber(AnnouncementsSubscriberInfo subscriber) { using (IDataContext context = DataContext.Instance()) { var repository = context.GetRepository <AnnouncementsSubscriberInfo>(); repository.Update(subscriber); } }
public static void AddSubscriber(AnnouncementsSubscriberInfo subscriber) { using (IDataContext context = DataContext.Instance()) { var repository = context.GetRepository<AnnouncementsSubscriberInfo>(); repository.Insert(subscriber); } }