public DashBoardService()
        {
            SqlInsightDbProvider.RegisterProvider();
            string       sqlConnection = ConfigurationManager.ConnectionStrings["SQLConnection"].ConnectionString;
            DbConnection c             = new SqlConnection(sqlConnection);

            _IDashBoardRepository = c.As <IDashBoardRepository>();
        }
Пример #2
0
        public DashBoardManager(IHttpContextAccessor contextAccessor,
                                IDashBoardRepository repository,
                                IUnitOfWork unitOfWork)
        {
            _userId = contextAccessor.HttpContext.User.GetUserId();

            _repository = repository;
            _unitOfWork = unitOfWork;
        }
        public DashBoardService()
        {
            SqlInsightDbProvider.RegisterProvider();
            //string sqlConnection = ConfigurationManager.ConnectionStrings["SQLConnection"].ConnectionString;
            string       sqlConnection = "Data Source=.;Initial Catalog=HRAMDashBoard;Integrated Security=True";
            DbConnection c             = new SqlConnection(sqlConnection);

            _IDashBoardRepository = c.As <IDashBoardRepository>();
        }
Пример #4
0
 public DashBoardController(IDashBoardRepository repository)
 {
     _repository = repository;
 }
Пример #5
0
 public DashBoardController(IDashBoardRepository repository, IUnitOfWork unitOfWork, IMapper mapper, UserManager <ApplicationUser> userManager)
 {
     _repository  = repository;
     _mapper      = mapper;
     _userManager = userManager;
 }
Пример #6
0
 public DashboardService(IDashBoardRepository dashBoardRepository)
 {
     _dashBoardRepository = dashBoardRepository;
 }
Пример #7
0
 public DashBoardService(IDashBoardRepository IDashBoardRepository)
 {
     _IDashBoardRepository = IDashBoardRepository;
 }
 public GetDashBoardRequestHandler(IDashBoardRepository repository) => _repository = repository;