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; }
public TargetMastersController(OmniCRMContext context) { _context = context; }
public StateMastersController(OmniCRMContext context) { _context = context; }
public AppoinmentStatusMastersController(OmniCRMContext context) { _context = context; }
public CallOutcomeMastersController(OmniCRMContext context) { _context = context; }
public AdminSettingsController(OmniCRMContext context) { _context = context; }
public ProductMastersController(OmniCRMContext context) { _context = context; }
public CompanyMastersController(OmniCRMContext context, IHostingEnvironment hostingEnvironment, IConfiguration configuration) { _context = context; _hostingEnvironment = hostingEnvironment; _configuration = configuration; }