public int AddBorrowed(BorrowDTO record) { IDictionary <string, object> conditions = new Dictionary <string, object>(); conditions["UID"] = record.UID; conditions["MediaID"] = record.MediaID; conditions["BorrowDate"] = record.BorrowDate; conditions["ReturnDate"] = record.ReturnDate; return(CrudFunctions.Create("BID", conditions, borrow)); }
BorrowDTO TranslateBorrowed(DataRow record) { BorrowDTO Output = new BorrowDTO(); Output.BID = record.Field <int>("BID"); Output.UID = record.Field <int>("UID"); Output.MediaID = record.Field <int>("MediaID"); Output.BorrowDate = (record.Field <DateTime>("BorrowDate")); Output.ReturnDate = (record.Field <DateTime>("ReturnDate")); Output.ActualReturnDate = (record.Field <DateTime>("ActualReturnDate")); return(Output); }
public BorrowDTO ReturnBorrowed(BorrowDTO record) { throw new NotImplementedException(); }