public UnitOfWork(ATMContext context) { this._context = context; this.AccountRepository = new Repository <Account>(this._context); this.UserRepository = new Repository <User>(this._context); this.SiteContentRepository = new Repository <SiteContent>(this._context); this.CardRepository = new Repository <Card>(this._context); }
public Repository(ATMContext context) { this._context = context; }