Exemple #1
0
        //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;
        }
Exemple #2
0
 public ProductsController(IVyayaamRepository repository, ILogger <ProductsController> logger)
 {
     this.repository = repository;
     this.logger     = logger;
 }
Exemple #3
0
 public OrderItemsController(IVyayaamRepository repository, ILogger <OrderItemsController> logger, IMapper mapper)
 {
     this.repository = repository;
     this.logger     = logger;
     this.mapper     = mapper;
 }