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;
 }
 public DashboardService(IDashBoardRepository dashBoardRepository)
 {
     _dashBoardRepository = dashBoardRepository;
 }
示例#7
0
 public DashBoardService(IDashBoardRepository IDashBoardRepository)
 {
     _IDashBoardRepository = IDashBoardRepository;
 }
 public GetDashBoardRequestHandler(IDashBoardRepository repository) => _repository = repository;