public DashBoardService() { SqlInsightDbProvider.RegisterProvider(); string sqlConnection = ConfigurationManager.ConnectionStrings["SQLConnection"].ConnectionString; DbConnection c = new SqlConnection(sqlConnection); _IDashBoardRepository = c.As <IDashBoardRepository>(); }
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>(); }
public DashBoardController(IDashBoardRepository repository) { _repository = repository; }
public DashBoardController(IDashBoardRepository repository, IUnitOfWork unitOfWork, IMapper mapper, UserManager <ApplicationUser> userManager) { _repository = repository; _mapper = mapper; _userManager = userManager; }
public DashboardService(IDashBoardRepository dashBoardRepository) { _dashBoardRepository = dashBoardRepository; }
public DashBoardService(IDashBoardRepository IDashBoardRepository) { _IDashBoardRepository = IDashBoardRepository; }
public GetDashBoardRequestHandler(IDashBoardRepository repository) => _repository = repository;