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