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

            _IDashBoardRepository = c.As <IDashBoardRepository>();
        }
Ejemplo n.º 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>();
        }
Ejemplo n.º 4
0
 public DashBoardController(IDashBoardRepository repository)
 {
     _repository = repository;
 }
Ejemplo n.º 5
0
 public DashBoardController(IDashBoardRepository repository, IUnitOfWork unitOfWork, IMapper mapper, UserManager <ApplicationUser> userManager)
 {
     _repository  = repository;
     _mapper      = mapper;
     _userManager = userManager;
 }
Ejemplo n.º 6
0
 public DashboardService(IDashBoardRepository dashBoardRepository)
 {
     _dashBoardRepository = dashBoardRepository;
 }
Ejemplo n.º 7
0
 public DashBoardService(IDashBoardRepository IDashBoardRepository)
 {
     _IDashBoardRepository = IDashBoardRepository;
 }
 public GetDashBoardRequestHandler(IDashBoardRepository repository) => _repository = repository;