Пример #1
0
        //public IUserPermissionService userPermissionService => new UserPermissionService(context, mapper);
        //public ISmsTemplateService smsTemplateService => new SmsTemplateService(context, mapper);
        //public ISmsOptionService smsOptionService => new SmsOptionService(context, mapper);
        //public IServicesService servicesService => new ServiceService(context, mapper);
        //public IServiceLocationService serviceLocationService => new ServiceLocationService(context, mapper);
        //public ICustomerService customerService => new CustomerService(context, mapper);
        //public ICompanyService companyService => new CompanyService(context, mapper);
        //public IAppointmentService appointmentService => new AppointmentService(context, mapper);
        //public IOrderFormService orderFormService => new OrderFormService(context, mapper);

        public BaseController(DBContext _context, IMapper _mapper, IHttpContextAccessor httpContextAccessor)
        {
            _context.BaseParameters = ParseRequest.GetParametersFromHeader(httpContextAccessor.HttpContext);
            context = _context;
            mapper  = _mapper;
        }