Пример #1
0
        //public IUserRepository Users { get; private set; }
        //public ITeamRepository Teams { get; private set; }
        //public IExpenseRepository Expenses { get; private set; }
        //public IExpenseDebitorRepository ExpenseDebitor { get; private set; }
        //public IScheduledEventRepository ScheduledEvents { get; private set; }
        //public IRecurringBillRepository RecurringBills { get; private set; }
        //public IOrderRepository Orders { get; private set; }

        public UnitOfWork(FlatmateContext context)
        {
            _context = context;
            //Users = new UserRepository(_context);
            //Teams = new TeamRepository(_context);
            //Expenses = new ExpenseRepository(_context);
            //ExpenseDebitor = new ExpenseDebitorRepository(_context);
            //ScheduledEvents = new ScheduledEventRepository(_context);
            //RecurringBills = new RecurringBillRepository(_context);
            //Orders = new OrderRepository(_context);
        }
Пример #2
0
 public UsersController(FlatmateContext context) => _context = context;
Пример #3
0
 public BudgetManagerController(FlatmateContext context)
 {
     _context = context;
 }
Пример #4
0
 public TeamsController(FlatmateContext context)
 {
     _context = context;
 }
Пример #5
0
 public SchedulerController(FlatmateContext context)
 {
     _context = context;
 }
Пример #6
0
 public HomeController(FlatmateContext context)
 {
     _context = context;
 }