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)); }
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); }