Beispiel #1
0
 public ActionResult Index()
 {
     var dalBooks= DataService.LoadBooks();
     var converter = new BooksConverter();
     var books = dalBooks.Select(converter.Convert).ToList();
     return View("Index", books);
 }
 public BooksBusinessImplementation(IRepository <Books> repository)
 {
     _repository = repository;
     _converter  = new BooksConverter();
 }