public Task <StoreProduct> ExecuteAsync(GetStoreProductQuery command, StoreProduct previousResult)
 {
     return(_repository.GetAsync(command.ProductId));
 }
Пример #2
0
 public Task <Model.StoreProduct> GetAsync(Guid productId)
 {
     return(_storeProductRepository.GetAsync(productId));
 }
Пример #3
0
 public async Task <CommandResponse <StoreProduct> > ExecuteAsync(GetStoreProductQuery command, CommandResponse <StoreProduct> previousResult)
 {
     return(CommandResponse <StoreProduct> .Ok(await _repository.GetAsync(command.ProductId)));
 }