public static void InsertItem(int accountId, string iname) { try { // Insert item. WHERE id=@Id" DLAccount.Insert(accountId, null, null, iname, null, DateTime.Now.ToString("yyyy.MM.dd H:mm:ss"), "INSERT INTO item (iname, rdate, account_id) VALUES (@Fname, @Rdate, @Id)"); } catch (Exception exception) { throw exception; } }
public static int SetAccount(string email, string pword, string fname, string lname) { try { // Return inserted accountId from DL. return(DLAccount.Insert(0, email, pword, fname, lname, DateTime.Now.ToString("yyyy.MM.dd H:mm:ss"), "INSERT INTO account VALUES (@Id, @Email, @Pword, @Fname, @Lname, @Rdate)")); } catch (Exception exception) { throw exception; } }