public bool RegisterInterest() { using (DryTestDataContext dbc = new DryTestDataContext(_dbConnectionString)) { try { Interest.CreateAndSave(APP_NAME, "", InterestType.Download, dbc); return true; } catch { return false; } } }
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; } }