public UserMastersController(OmniCRMContext context, IHostingEnvironment hostingEnvironment, IConfiguration configuration, IMapper mapper)
 {
     _context            = context;
     _hostingEnvironment = hostingEnvironment;
     _configuration      = configuration;
     _mapper             = mapper;
 }
        //public static DailyEmailService(OmniCRMContext context, IHostingEnvironment hostingEnvironment, IConfiguration configuration)
        //{
        //    _context = context;
        //    _hostingEnvironment = hostingEnvironment;
        //    _configuration = configuration;
        //    timer = new Timer();
        //    timer.Interval = GetNextInterval();
        //    timer.Elapsed += Timer_Elapsed;
        //}

        public static void StartTimer()
        {
            GenericMethods.Log(LogType.ActivityLog.ToString(), "DailyEmailService StartTimer");
            timer          = new Timer();
            _context       = new OmniCRMContext();
            timer.Interval = GetNextInterval();
            timer.Start();
            timer.Elapsed += Timer_Elapsed;
        }
Пример #3
0
 public TargetMastersController(OmniCRMContext context)
 {
     _context = context;
 }
Пример #4
0
 public StateMastersController(OmniCRMContext context)
 {
     _context = context;
 }
Пример #5
0
 public AppoinmentStatusMastersController(OmniCRMContext context)
 {
     _context = context;
 }
Пример #6
0
 public CallOutcomeMastersController(OmniCRMContext context)
 {
     _context = context;
 }
Пример #7
0
 public AdminSettingsController(OmniCRMContext context)
 {
     _context = context;
 }
 public ProductMastersController(OmniCRMContext context)
 {
     _context = context;
 }
Пример #9
0
 public CompanyMastersController(OmniCRMContext context, IHostingEnvironment hostingEnvironment, IConfiguration configuration)
 {
     _context            = context;
     _hostingEnvironment = hostingEnvironment;
     _configuration      = configuration;
 }