Пример #1
0
        public EnquiryTypeViewModel()
        {
            var Scope = Startup.Instance.provider.CreateScope();

            _currentEnquiryType    = new EnquiryType();
            _repositoryEnquiryType = Scope.ServiceProvider.GetRequiredService <IEnquiryTypeService>();
            EnquiryTypes           = _repositoryEnquiryType.GetAllEnquiryType();
            WireCommands();
        }
Пример #2
0
 public IEnumerable <EnquiryType> Get()
 {
     return(_enquirytypeService.GetAllEnquiryType());
 }