Esempio n. 1
0
        public EnquiryTypeViewModel()
        {
            var Scope = Startup.Instance.provider.CreateScope();

            _currentEnquiryType    = new EnquiryType();
            _repositoryEnquiryType = Scope.ServiceProvider.GetRequiredService <IEnquiryTypeService>();
            EnquiryTypes           = _repositoryEnquiryType.GetAllEnquiryType();
            WireCommands();
        }
Esempio n. 2
0
        public EnquiriesController(IPersonService personService, IMailerService mailerService,
                                   IMappingEngine mappingEngine, IAddressService addressService,
                                   IEnquiryTypeService enquiryTypeService, IEnquiryService enquiryService,
                                   ISerializer serializer, IEnquiryRecipientService enquiryRecipientService)
        {
            if (mailerService == null)
            {
                throw new ArgumentNullException("mailerService");
            }
            if (personService == null)
            {
                throw new ArgumentNullException("personService");
            }
            if (mappingEngine == null)
            {
                throw new ArgumentNullException("mappingEngine");
            }
            if (addressService == null)
            {
                throw new ArgumentNullException("addressService");
            }
            if (enquiryTypeService == null)
            {
                throw new ArgumentNullException("enquiryTypeService");
            }
            if (enquiryService == null)
            {
                throw new ArgumentNullException("enquiryService");
            }
            if (serializer == null)
            {
                throw new ArgumentNullException("serializer");
            }
            if (enquiryRecipientService == null)
            {
                throw new ArgumentNullException("enquiryRecipientService");
            }

            _mailerService           = mailerService;
            _mappingEngine           = mappingEngine;
            _personService           = personService;
            _addressService          = addressService;
            _enquiryService          = enquiryService;
            _enquiryTypeService      = enquiryTypeService;
            _serializer              = serializer;
            _enquiryRecipientService = enquiryRecipientService;
        }
Esempio n. 3
0
 public EnquiryTypeController(IEnquiryTypeService enquirytypeService)
 {
     _enquirytypeService = enquirytypeService;
 }