public int AddSubscriptionReminder(SubscriptionReminderModel model)
 {
     try
     {
         Mapper.CreateMap<SubscriptionReminderModel, SubscriptionReminder>();
         var template = Mapper.Map<SubscriptionReminderModel, SubscriptionReminder>(model);
         int i = dbContext.SaveChanges();
         return i;
     }
     catch (Exception ex)
     {
         logger.Error("Method: AddSubscriptionReminder()", ex);
         return 0;
     }
 }
 public int EditSubscriptionReminder(SubscriptionReminderModel model)
 {
     try
     {
         Mapper.CreateMap<SubscriptionReminderModel, SubscriptionReminder>();
         var template = Mapper.Map<SubscriptionReminderModel, SubscriptionReminder>(model);
         dbContext.Entry(template).State = EntityState.Modified;
         int i = dbContext.SaveChanges();
         return i;
     }
     catch (Exception ex)
     {
         logger.Error("Method: EditSubscriptionReminder()", ex);
         return 0;
     }
 }