public BookViewModel() { rb = new RepositoryBook(); rc = new RepositoryCopy(); refreshBooks(); }
public IActionResult Index() { var repo = new RepositoryBook(); var ret = repo.GetVM(); return(View(ret)); }
public EShopUnitOfWork(ShopContext context) { this.context = context; RepostiryCustomer = new RepositoryCustomer(context); RepositoryBook = new RepositoryBook(context); RepositoryOrder = new RepositoryOrder(context); RepositoryGenre = new RepositoryGenre(context); RepositoryAutor = new RepositoryAutor(context); }
public MainWindow() { InitializeComponent(); repoUser = RepositoryUser.Instance; repoTheme = RepositoryTheme.Instance; repoAuthor = RepositoryAuthor.Instance; repoBook = RepositoryBook.Instance; repoUser.LoadData(); repoTheme.LoadData(); repoAuthor.LoadData(); repoBook.LoadData(); }
public void Initialize() { authors = new List <Author>(); books = new List <Book>(); copies = new List <Copy>(); loans = new List <Loan>(); members = new List <Member>(); ra = new RepositoryAuthor(); rb = new RepositoryBook(); rc = new RepositoryCopy(); rl = new RepositoryLoan(); rm = new RepositoryMember(); }