Example #1
0
        public MainController()
        {
            ToBuyContext context = new ToBuyContext();

            cs  = new CategoryService(context);
            ass = new AdService(context);
        }
Example #2
0
        public XController(IHttpContextAccessor accessor, IMemoryCache memoryCache) : base(accessor)
        {
            this.memoryCache = memoryCache;
            ToBuyContext context = new ToBuyContext();

            service = new AdService(context);
        }
Example #3
0
        public MessageController(IHttpContextAccessor accessor) : base(accessor)
        {
            ToBuyContext context = new ToBuyContext();

            messageService = new MessageService(context);
            crea           = new EmailCreator(context);
            userService    = new UserService(context);
        }
Example #4
0
 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);
             }
         }
     }
 }
Example #5
0
 public MailService(ToBuyContext context) : base(context)
 {
 }
Example #6
0
 public MessageService(ToBuyContext context) : base(context)
 {
 }
Example #7
0
 public CategoryService(ToBuyContext context) : base(context)
 {
 }
Example #8
0
 public UserController(IHttpContextAccessor accessor) : base(accessor)
 {
     context = new ToBuyContext();
     service = new UserService(context);
 }
Example #9
0
 public BaseService(ToBuyContext context)
 {
     this.context = context;
 }
Example #10
0
 public EmailCreator(ToBuyContext context)
 {
     service = new MailService(context);
 }
Example #11
0
 public UserService(ToBuyContext context) : base(context)
 {
 }
Example #12
0
        public CategoriesController()
        {
            ToBuyContext context = new ToBuyContext();

            cs = new CategoryService(context);
        }