Пример #1
0
 public Handler(DataContext context, IMapper mapper, IUserAccessor userAccessor, ISP_Call spCall)
 {
     _userAccessor = userAccessor;
     _mapper       = mapper;
     _context      = context;
     _spCall       = spCall;
 }
 public AssignDeliveryboyToManagerController(IAssignDeliveryboyToManagerServices assignDeliveryboyToManagerServices, IdriverRegistrationServices driverRegistrationServices, UserManager <ApplicationUser> usermanager, ISP_Call ispcall)
 {
     _assignDeliveryboyToManagerServices = assignDeliveryboyToManagerServices;
     _driverRegistrationServices         = driverRegistrationServices;
     _usermanager = usermanager;
     _ispcall     = ispcall;
 }
Пример #3
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db      = db;
     Category = new CategoryRepository(_db);
     Product  = new ProductRepository(_db);
     SP_Call  = new SP_Call(_db);
 }
Пример #4
0
 public AccountController(UserManager <ApplicationUser> usermanager,
                          SignInManager <ApplicationUser> signinmanager,
                          RoleManager <IdentityRole> roleManager
                          , IWebHostEnvironment hostingEnvironment
                          , IstoredetailsServices storedetailsServices
                          , IRadiusMasterServices RadiusMasterServices
                          , IDeliveryTimeMasterServices DeliveryTimeMasterServices
                          , ICountryRegistrationservices CountryRegistrationservices
                          , IStateRegistrationService StateRegistrationService
                          , ICityRegistrationservices cityRegistrationservices
                          , Iproductservices productservices
                          , Iproductcuisinemasterservices productcuisinemasterservices
                          , ISP_Call sP_Call
                          )
 {
     this.usermanager              = usermanager;
     this.signinmanager            = signinmanager;
     this.roleManager              = roleManager;
     _hostingEnvironment           = hostingEnvironment;
     _storedetailsServices         = storedetailsServices;
     _RadiusMasterServices         = RadiusMasterServices;
     _DeliveryTimeMasterServices   = DeliveryTimeMasterServices;
     _productservices              = productservices;
     _CountryRegistrationservices  = CountryRegistrationservices;
     _StateRegistrationService     = StateRegistrationService;
     _cityRegistrationservices     = cityRegistrationservices;
     _productcuisinemasterservices = productcuisinemasterservices;
     _sP_Call = sP_Call;
 }
 public UnitOfWork(DataBase db, IMapper mapper)
 {
     _db       = db;
     Customers = new CustomersRepository(_db, mapper);
     Items     = new ItemsRepository(_db, mapper);
     Orders    = new OrdersRepository(_db);
     SP_Call   = new SP_Call(_db);
 }
Пример #6
0
 public StoresController(UserManager <ApplicationUser> usermanager, SignInManager <ApplicationUser> signinmanager, ISP_Call ISP_Call, Iproductservices productservices, IstoredetailsServices storedetailsServices, IversionsServices versionsServices)
 {
     _usermanager          = usermanager;
     _signinmanager        = signinmanager;
     _ISP_Call             = ISP_Call;
     _productservices      = productservices;
     _storedetailsServices = storedetailsServices;
     _versionsServices     = versionsServices;
 }
Пример #7
0
 public customerController(ICustomerRegistrationservices _CustomerRegistrationservices, IWebHostEnvironment hostingEnvironment, IsliderServices sliderServices, ISP_Call ISP_Call, IordersServices ordersServices, IcustomerfeedbackServices customerfeedbackServices)
 {
     CustomerRegistrationservices = _CustomerRegistrationservices;
     _sliderServices           = sliderServices;
     _hostingEnvironment       = hostingEnvironment;
     _ISP_Call                 = ISP_Call;
     _ordersServices           = ordersServices;
     _customerfeedbackServices = customerfeedbackServices;
 }
Пример #8
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context  = context;
     Category  = new CategoryRepository(_context);
     Product   = new ProductRepository(_context);
     CoverType = new CoverTypeRepository(_context);
     Company   = new CompanyRepository(_context);
     SP_Call   = new SP_Call(_context);
 }
Пример #9
0
 public AdminController(IordersServices ordersServices, ISP_Call ISP_Call, IdriverRegistrationServices driverRegistrationServices, IorderhistoryServices orderhistoryServices, ICustomerRegistrationservices CustomerRegistrationservices, UserManager <ApplicationUser> usermanager, SignInManager <ApplicationUser> _signinmanager)
 {
     _ordersServices               = ordersServices;
     _ISP_Call                     = ISP_Call;
     _driverRegistrationServices   = driverRegistrationServices;
     _orderhistoryServices         = orderhistoryServices;
     _CustomerRegistrationservices = CustomerRegistrationservices;
     _usermanager                  = usermanager;
     signinmanager                 = _signinmanager;
 }
Пример #10
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db          = db;
     Category     = new CategoryRepository(_db);
     Frequency    = new FrequencyRepository(_db);
     Service      = new ServiceRepository(_db);
     OrderHeader  = new OrderHeaderRepository(_db);
     OrderDetails = new OrderDetailsRepository(_db);
     User         = new UserRepository(_db);
     SP_Call      = new SP_Call(_db);
 }
Пример #11
0
 public collectionController(UserManager <ApplicationUser> usermanager, ISP_Call ispcall, IordersServices ordersServices, ICustomerRegistrationservices CustomerRegistrationservices, ISP_Call ISP_Call, IdriverRegistrationServices driverRegistrationServices, IstoredetailsServices storedetailsServices, IdistanceServices distanceServices)
 {
     this._usermanager             = usermanager;
     _ISP_Call                     = ispcall;
     _ispcall                      = ispcall;
     _ordersServices               = ordersServices;
     _CustomerRegistrationservices = CustomerRegistrationservices;
     _driverRegistrationServices   = driverRegistrationServices;
     _storedetailsServices         = storedetailsServices;
     _distanceServices             = distanceServices;
 }
Пример #12
0
 /// <summary>
 /// Constructor, initialize all the repository and attach them database context
 /// </summary>
 /// <param name="db">Database contex</param>
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     FoodType        = new FoodTypeRepository(_db);
     MenuItem        = new MenuItemRepository(_db);
     ApplicationUser = new ApplicationUserRepository(_db);
     ShoppingCart    = new ShoppingCartRepository(_db);
     OrderHeader     = new OrderHeaderRepository(_db);
     OrderDetails    = new OrderDetailsRepository(_db);
     SP_Call         = new SP_Call(_db);
 }
Пример #13
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context                  = context;
     CategoryRepository        = new CategoryRepository(context);
     FoodTypeRepository        = new FoodTypeRepository(context);
     MenuItemRepository        = new MenuItemRepository(context);
     ApplicationUserRepository = new ApplicationUserRepository(context);
     ShoppingCartRepository    = new ShoppingCartRepository(context);
     OrderDetailsRepository    = new OrderDetailsRepository(context);
     OrderHeaderRepository     = new OrderHeaderRepository(context);
     SpCall = new SP_Call(context);
 }
Пример #14
0
 public hotelController(ICustomerRegistrationservices _CustomerRegistrationservices, IstoredetailsServices storedetailsServices, IWebHostEnvironment hostingEnvironment, Iproductcuisinemasterservices productcuisinemasterservices, Iproductservices productservices, IordersServices ordersServices, IorderproductServices orderproductServices, IorderhistoryServices orderhistoryServices, ApplicationDbContext db, ISP_Call ISP_Call, UserManager <ApplicationUser> usermanager)
 {
     _storedetailsServices         = storedetailsServices;
     _hostingEnvironment           = hostingEnvironment;
     _productcuisinemasterservices = productcuisinemasterservices;
     _productservices      = productservices;
     _ordersServices       = ordersServices;
     _orderproductServices = orderproductServices;
     _orderhistoryServices = orderhistoryServices;
     _db          = db;
     _ISP_Call    = ISP_Call;
     _usermanager = usermanager;
 }
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     CoverType       = new CoverTypeRepository(_db);
     Product         = new ProductRepository(_db);
     Company         = new CompanyRepository(_db);
     ApplicationUser = new ApplicationUserRepository(_db);
     OrderDetails    = new OrderDetailsRepository(_db);
     OrderHeader     = new OrderHeaderRepository(_db);
     ShoppingCart    = new ShoppingCartRepository(_db);
     SP_Call         = new SP_Call(_db);
 }
Пример #16
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _dbContext = context;
     Category   = new CategoryRepository(_dbContext);
     SpCall     = new SP_Call(_dbContext);
 }
Пример #17
0
 public ExpensesController(ApplicationDbContext context, ISP_Call sp)
 {
     _context = context;
     _sp      = sp;
 }
Пример #18
0
 public PaymentController(IdriverRegistrationServices driverRegistrationServices, ISP_Call sP_Call, IstoredetailsServices storedetailsServices)
 {
     _sP_Call = sP_Call;
     _driverRegistrationServices = driverRegistrationServices;
     _storedetailsServices       = storedetailsServices;
 }
Пример #19
0
 public ManagerCollectionController(UserManager <ApplicationUser> usermanager, IAdminCollectionservices adminCollectionservices, ISP_Call ispcall)
 {
     _usermanager             = usermanager;
     _adminCollectionservices = adminCollectionservices;
     _ispcall = ispcall;
 }
Пример #20
0
 public FeedbackController(ISP_Call sP_Call)
 {
     _sP_Call = sP_Call;
 }