public Task <StoreProduct> ExecuteAsync(GetStoreProductQuery command, StoreProduct previousResult)
 {
     return(_repository.GetAsync(command.ProductId));
 }
Esempio n. 2
0
 public Task <Model.StoreProduct> GetAsync(Guid productId)
 {
     return(_storeProductRepository.GetAsync(productId));
 }
Esempio n. 3
0
 public async Task <CommandResponse <StoreProduct> > ExecuteAsync(GetStoreProductQuery command, CommandResponse <StoreProduct> previousResult)
 {
     return(CommandResponse <StoreProduct> .Ok(await _repository.GetAsync(command.ProductId)));
 }