public static int AddUser(SQLiteConnection connection,User user) { DataProvider dtb = new DataProvider (connection); if (dtb.GetUser (user.Id) == null) { return dtb.AddUser (user); } return 0; }
public static User GetUser(SQLiteConnection connection,string id ) { DataProvider dtb = new DataProvider (connection); return dtb.GetUser (id); }