Beispiel #1
0
        public async Task <CustomerViewModel> GetById(Guid id)
        {
            var customer = await _elasticSearchService.GetId <CustomerViewModel>(ElasticSearchIndexDocumentNames.CustomerIndexName, id);

            return(customer);
        }
 public async Task <ProductViewModel> GetById(Guid id)
 {
     return(await _elasticSearchService.GetId <ProductViewModel>(ElasticSearchIndexDocumentNames.ProductIndexName, id));
 }
Beispiel #3
0
        public async Task <EmployeeViewModel> GetById(Guid id)
        {
            var res = await _elasticSearchService.GetId <EmployeeViewModel>(ElasticSearchIndexDocumentNames.EmployeeIndexName, id);

            return(res);
        }
        public async Task <SupplierViewModel> GetById(Guid id)
        {
            var data = await _elasticSearchService.GetId <SupplierViewModel>(ElasticSearchIndexDocumentNames.SupplierIndexName, id);

            return(data);
        }