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