Exemplo n.º 1
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context = context;
     Product  = new EFProductRepository(_context);
     CallBack = new CallBackRepository(_context);
     Category = new CategoryRepository(_context);
 }
Exemplo n.º 2
0
 public CallBackController(CallBackRepository callBackRepository, TelegramBotClient botClient,
                           IOptions <ApiSettings> apiSettings)
 {
     _callBackRepository = callBackRepository;
     _botClient          = botClient;
     _apiSettings        = apiSettings;
 }