//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); }
public UsersController(FlatmateContext context) => _context = context;
public BudgetManagerController(FlatmateContext context) { _context = context; }
public TeamsController(FlatmateContext context) { _context = context; }
public SchedulerController(FlatmateContext context) { _context = context; }
public HomeController(FlatmateContext context) { _context = context; }