예제 #1
0
        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));
        }
예제 #2
0
        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);
        }
예제 #3
0
 public BorrowDTO ReturnBorrowed(BorrowDTO record)
 {
     throw new NotImplementedException();
 }