Ejemplo n.º 1
0
 public NominationController(INominationService nominationService, Encourage.DAL.Interfaces.IDataContextFactory dataContextFactory,
                             ICommonDbService commonDbService, IAwardService awardService, IReviewService reviewService, ILogger logger, ICustomDateService customDateService)
 {
     _nominationService        = nominationService;
     _commonDbContext          = commonDbService.GetCommonDataBaseContext();
     _encourageDatabaseContext = dataContextFactory.CreateEncourageDbContext();
     _awardService             = awardService;
     _reviewService            = reviewService;
     _textInfo          = new CultureInfo("en-US", false).TextInfo;
     _logger            = logger;
     _customDateService = customDateService;
 }
Ejemplo n.º 2
0
 public ReviewController(IResultService resultService, INominationService nominationService, ICommonDbService commonDbService, Encourage.DAL.Interfaces.IDataContextFactory dataContextFactory, IAwardService awardService,
                         IReviewService reviewService, IEmailNotificationOfWinner EmailNotificationOfWinner, ILogger logger, ICustomDateService customDateService)
 {
     _commonDbContext           = commonDbService.GetCommonDataBaseContext();
     _encourageDatabaseContext  = dataContextFactory.CreateEncourageDbContext();
     _awardService              = awardService;
     _reviewService             = reviewService;
     _nominationService         = nominationService;
     _resultService             = resultService;
     _emailNotificationOfWinner = EmailNotificationOfWinner;
     _logger            = logger;
     _customDateService = customDateService;
 }