/// <summary>
/// Creates a store manager if they don't already exist in the database.
/// </summary>
private void CreateStoreManager()
{
using (InspiringChampions.Common.Data.ICDataContext db = new Common.Data.ICDataContext(Globals.ConnStr))
{
//If the store manager isn't already in the database, create their record.
if (!db.InfusionSoftManagers.Any(ism => ism.ContactID == this.Id))
{
Common.Data.InfusionSoftManager manager = new Data.InfusionSoftManager();
manager.ContactID = this.Id;
manager.LastLogin = DateTime.Now;
manager.IsNotifications = true;
db.InfusionSoftManagers.InsertOnSubmit(manager);
db.SubmitChanges();
}
}
}
What does the manager object refer to, is this a Contact? Migrating from .net 4 Helper Libraries to Keap v1/v2 apis.