public List <BRModel> ListMediaBorrowUser(int UserID) { List <BRModel> medias = new List <BRModel>(); borrowTable = mediaDAO.ListMediaReturn(UserID); foreach (MediaDS.TabBorrowRow row in borrowTable.Rows) { BRModel media = BRModel.Parse(row); medias.Add(media); } return(medias); }
public List <BRModel> ListOfReservedMedia() { try { List <BRModel> medias = new List <BRModel>(); reservedTable = mediaDAO.ListOfReservedMedia(); foreach (MediaDS.TabReservedRow row in reservedTable.Rows) { BRModel media = BRModel.Parse(row); medias.Add(media); } return(medias); } catch (Exception ex) { throw ex; } }