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; }
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); }