Пример #1
0
 public static void UpdateBorrow(Borrow borrow)//Update
 {
     DBClass.InsertCommand("exec spUpdateBORROW " + borrow.UserId + "," + borrow.ItemId + " , '" + borrow.ReturnDate + "'");
 }
Пример #2
0
 public static void InsertBorrow(Borrow borrow)//Insert
 {
     DBClass.InsertCommand("exec spInsertBORROW " + borrow.UserId + ", " + borrow.ItemId + ",'" + borrow.ReceiveDate + "', '" + borrow.ReturnDate + "'");
 }