/// <summary> /// Сохранение базы /// </summary> /// <param name=""></param> public static void Save(Subscriber subscriber) { try { db.Update(subscriber); } catch(Exception e) { Helper.LogError(e); throw; } }
/// <summary> /// Создание Подписки /// </summary> /// <returns></returns> public static Subscriber CreateSubscriber() { var subscriber = new Subscriber(); subscriber.SubscriberEmail = ""; //subscriber.ConfirmTime = DateTime.UtcNow; subscriber.SubscribeTime = DateTime.UtcNow; subscriber.IsConfirmed = false; subscriber.ConfirmCode = ""; try { db.Insert(subscriber); } catch (Exception e) { Helper.LogError(e); throw; } return subscriber; }