public MainController() { ToBuyContext context = new ToBuyContext(); cs = new CategoryService(context); ass = new AdService(context); }
public XController(IHttpContextAccessor accessor, IMemoryCache memoryCache) : base(accessor) { this.memoryCache = memoryCache; ToBuyContext context = new ToBuyContext(); service = new AdService(context); }
public MessageController(IHttpContextAccessor accessor) : base(accessor) { ToBuyContext context = new ToBuyContext(); messageService = new MessageService(context); crea = new EmailCreator(context); userService = new UserService(context); }
public AdService(ToBuyContext context) : base(context) { if (lookup == null) { lock (lockme) { if (lookup == null) { CategoryService service = new CategoryService(context); Category cat = context.Categories.ToList().First(x => x.Id == 1); lookup = new Dictionary <int, List <int> >(); namer = new Dictionary <int, string>(); FillNamer(cat); FillDict(cat); } } } }
public MailService(ToBuyContext context) : base(context) { }
public MessageService(ToBuyContext context) : base(context) { }
public CategoryService(ToBuyContext context) : base(context) { }
public UserController(IHttpContextAccessor accessor) : base(accessor) { context = new ToBuyContext(); service = new UserService(context); }
public BaseService(ToBuyContext context) { this.context = context; }
public EmailCreator(ToBuyContext context) { service = new MailService(context); }
public UserService(ToBuyContext context) : base(context) { }
public CategoriesController() { ToBuyContext context = new ToBuyContext(); cs = new CategoryService(context); }