public BaiTapNopService(IBaiTapNopRepository baiTapNopRepository, INguoiDungRepository nguoiDungRepository, IMapper mapper) : base(baiTapNopRepository, mapper) { _baiTapNopRepository = baiTapNopRepository; _nguoiDungRepository = nguoiDungRepository; }
public ChuyenLopService(IChuyenLopRepository chuyenLopRepository, INguoiDungRepository nguoiDungRepository, ILopHocRepository lopHocRepository, IMapper mapper) : base(chuyenLopRepository, mapper) { _chuyenLopRepository = chuyenLopRepository; _nguoiDungRepository = nguoiDungRepository; _lopHocRepository = lopHocRepository; }
public KhachHangService(IKhachHangRepository khachHangRepository, ILopHocRepository lopHocRepository, INguoiDungRepository nguoiDungRepository, IMapper mapper) : base(khachHangRepository, mapper) { _lopHocRepository = lopHocRepository; _nguoiDungRepository = nguoiDungRepository; _khachHangRepository = khachHangRepository; }
public UnitOfWork(QLNHContext context) { this.context = context; ThucDons = new ThucDonRepository(context); BanAns = new BanAnRepository(context); HoaDons = new HoaDonRepository(context); LoaiMonAns = new LoaiMonAnRepository(context); KhachHangs = new KhachHangRepository(context); PhieuDatBans = new PhieuDatBanRepository(context); NguoiDungs = new NguoiDungRepository(context); }
public NguoiDungService(INguoiDungRepository nguoiDungRepository, IMapper mapper, INhomQuyenRepository nhomQuyenRepository, IAppSettings appSettings) : base(nguoiDungRepository, mapper) { _nguoiDungRepository = nguoiDungRepository; _nhomQuyenRepository = nhomQuyenRepository; _appSettings = appSettings; _httpClient = new HttpClient(); _httpClient.DefaultRequestHeaders .Accept .Add(new MediaTypeWithQualityHeaderValue("application/json")); }
public KhachHangService(IKhachHangRepository khachHangRepository, ILopHocRepository lopHocRepository, INguoiDungRepository nguoiDungRepository, IHocPhiRepository hocPhiRepository, IAppSettings appSettings, IMapper mapper) : base(khachHangRepository, mapper) { _lopHocRepository = lopHocRepository; _nguoiDungRepository = nguoiDungRepository; _khachHangRepository = khachHangRepository; _hocPhiRepository = hocPhiRepository; _appSettings = appSettings; }
public LopHocService(ILopHocRepository lopHocRepository, INguoiDungRepository nguoiDungRepository, ILoTrinhRepository loTrinhRepository, IKhoaHocRepository khoaHocRepository, IBaiTapRepository baiTapRepository, IBaiTapNopRepository baiTapNopRepository, IMapper mapper) : base(lopHocRepository, mapper) { _lopHocRepository = lopHocRepository; _nguoiDungRepository = nguoiDungRepository; _loTrinhRepository = loTrinhRepository; _khoaHocRepository = khoaHocRepository; _baiTapRepository = baiTapRepository; _baiTapNopRepository = baiTapNopRepository; }
public NguoiDungService(INguoiDungRepository iNguoiDungRepository, IMapper mapper) { this.iNguoiDungRepository = iNguoiDungRepository; this.iMapper = mapper; }
public SecuredController() { adminUow = new AdminUnitOfWork(new HDNHD.Models.DataContexts.AdminDataContext()); nguoiDungRepository = adminUow.Repository <NguoiDungRepository>(); dangNhapRepository = adminUow.Repository <DangNhapRepository>(); }
public NguoiDungService(INguoiDungRepository nguoiDungRepository, IUnitOfWork unitOfWork) { _nguoiDungRepository = nguoiDungRepository; _unitOfWork = unitOfWork; }
public NguoiDungBusiness(INguoiDungRepository res) { _res = res; }