Exemplo n.º 1
0
 public static List<BookVModel> Books(IQueryable<SeqBook> result)
 {
     List<BookVModel> bookList = new List<BookVModel>();
     BookVModel book;
     foreach (SeqBook b in result) {
         book = new BookVModel();
         book.Title = b.Title;
         book.PageCount = b.PageCount;
         bookList.Add(book);
     }
     return bookList;
 }
Exemplo n.º 2
0
        public static List <BookVModel> Books(IQueryable <SeqBook> result)
        {
            List <BookVModel> bookList = new List <BookVModel>();
            BookVModel        book;

            foreach (SeqBook b in result)
            {
                book           = new BookVModel();
                book.Title     = b.Title;
                book.PageCount = b.PageCount;
                bookList.Add(book);
            }
            return(bookList);
        }