Example #1
0
 public ItemController(DAL.Model.AruhazContext ctx)
 {
     _ctx      = ctx;
     _product  = new DAL.Model.Repository.ProductRepo(ctx);
     _category = new DAL.Model.Repository.FilterRepo(ctx);
     _photo    = new DAL.Model.Repository.PhotoRepo(ctx);
     _user     = new DAL.Model.Repository.UserRepo(ctx);
 }
Example #2
0
 public UserController(DAL.Model.AruhazContext ctx, IOptions <AppSettings> appSettings)
 {
     _ctx         = ctx;
     _user        = new DAL.Model.Repository.UserRepo(ctx);
     _appSettings = appSettings.Value;
 }