//private readonly VyayaamContext _context; //Changed to use repository instead of _context //public AppController(IMailService mailService, VyayaamContext context) //{ // this._mailService = mailService; // this._context = context; //} public AppController(IMailService mailService, IVyayaamRepository repository) { this._mailService = mailService; this.repository = repository; //this._context = context; }
public ProductsController(IVyayaamRepository repository, ILogger <ProductsController> logger) { this.repository = repository; this.logger = logger; }
public OrderItemsController(IVyayaamRepository repository, ILogger <OrderItemsController> logger, IMapper mapper) { this.repository = repository; this.logger = logger; this.mapper = mapper; }