public int UploadPersonSessionIfNeeded(PersonSession ps) { if (!SqlitePersonSession.PersonSelectExistsInSession(ps.PersonID, ps.SessionID)) { Console.WriteLine("personSession needed"); Console.WriteLine(ps.ToString()); ps.InsertAtDB(false, Constants.PersonSessionTable); Console.WriteLine("done"); return(1); //unused } else { Console.WriteLine("personSession NOT needed"); } return(0); //unused }
public int UploadPersonSessionIfNeeded(PersonSession ps) { if(!SqlitePersonSession.PersonSelectExistsInSession(ps.PersonID, ps.SessionID)) { Console.WriteLine("personSession needed"); Console.WriteLine(ps.ToString()); ps.InsertAtDB(false, Constants.PersonSessionTable); Console.WriteLine("done"); return 1; //unused } else Console.WriteLine("personSession NOT needed"); return 0; //unused }