Esempio n. 1
0
 public bool RegisterInterest()
 {
     using (DryTestDataContext dbc = new DryTestDataContext(_dbConnectionString))
     {
         try
         {
             Interest.CreateAndSave(APP_NAME, "", InterestType.Download, dbc);
             return true;
         }
         catch
         {
             return false;
         }
     }
 }
Esempio n. 2
0
 public bool RegisterEmail(string email)
 {
     using (DryTestDataContext dbc = new DryTestDataContext(_dbConnectionString))
     {
         if (email.IsValidEmail())
         {
             try
             {
                 Interest.CreateAndSave(APP_NAME, email, InterestType.Email, dbc);
                 return true;
             }
             catch
             {
                 return false;
             }
         }
         return false;
     }
 }