Exemplo n.º 1
0
 public UserService(IUtilityService utilityService, IDataContextFactory dataContextFactory, IUtilityUserRoleService utilityUserRoleService, IRoleService roleService)
 {
     _commonDBContext        = dataContextFactory.CreateCommonDBContext();
     _utilityService         = utilityService;
     _utilityUserRoleService = utilityUserRoleService;
     _roleService            = roleService;
 }
Exemplo n.º 2
0
        public ICommonDataBaseContext CreateCommonDBContext()
        {
            ICommonDataBaseContext dataContext = null;

            dataContext =
                new CommonDataBaseContext(
                    ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString);

            return(dataContext);
        }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
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;
 }
 public UtilityUserRoleService(IDataContextFactory dataContextFactory)
 {
     _commmonDBContext = dataContextFactory.CreateCommonDBContext();
 }
Exemplo n.º 6
0
 public Authorization(ICommonDataBaseContext commonDBContext)
 {
     _commonDBContext = commonDBContext;
 }
Exemplo n.º 7
0
        //private readonly ICommonDataBaseContext _commonDBContxt;

        //public SkillSetService(IDataContextFactory dataContextFactory)
        //{
        //    _context = dataContextFactory.Create(ConnectionType.Ip);
        //}

        public SkillSetService(ICommonMapper commonMapper)
        {
            _commonMapper    = commonMapper;
            _commonDBContext = commonMapper.GetCommonDataBAseContext();
        }
Exemplo n.º 8
0
 public SuperUserService(ICommonDataBaseContext commonDbContext)
 {
     _commmonDBContext = commonDbContext;
 }
Exemplo n.º 9
0
 public HolidayService()
 {
     contextFactory = new DataContextFactory();
     context        = contextFactory.CreateCommonDBContext();
 }