public MainForm(IApplicationContext applicationContext, IBooksOrderer booksOrderer) { _booksOrderer = booksOrderer; Context = applicationContext; InitializeComponent(); }
public List <BookModel> BooksOrderer(List <BookModel> BookModel, IBooksOrderer booksOrderer, int idOrder) { try { if (BookModel != null) { return(ListBooks = booksOrderer.BooksOrderer(BookModel, idOrder).ToList()); } else { throw new Exception("Orderby Exception"); } } catch (Exception) { throw; } }
public BookController(IApplicationContext applicationContext, IBooksOrderer booksOrderer) : base(applicationContext) { _booksOrderer = booksOrderer; }