Пример #1
0
        private static List <BorrowModel> ConvertBorrowTableToBorrowList(MediaDataSet.TabBorrowDataTable borrowTable)
        {
            List <BorrowModel> borrowList = new List <BorrowModel>();


            foreach (MediaDataSet.TabBorrowRow row in borrowTable.Rows)
            {
                BorrowModel model = BorrowModel.Parse(row);
                borrowList.Add(model);
            }
            return(borrowList);
        }
Пример #2
0
        public List <BorrowModel> ListBorrowedItems()
        {
            List <BorrowModel> borrowList = new List <BorrowModel>();

            borrowTable = mediaDAO.ListBorrow();

            foreach (MediaDS.TabBorrowRow row in borrowTable.Rows)
            {
                BorrowModel borrowItem = BorrowModel.Parse(row);
                borrowList.Add(borrowItem);
            }
            return(borrowList);
        }