public async Task <IActionResult> UpdateStore([FromBody] UpdateStoreContract updateStoreContract) { var model = storeUpdateConverter.ToDomain(updateStoreContract); var command = new UpdateStoreCommand(model); try { await commandDispatcher.DispatchAsync(command, default); } catch (DomainException e) { return(BadRequest(e.Reason)); } return(Ok()); }
public async Task UpdateStore(UpdateStoreContract updateStoreContract) { await apiClient.UpdateStore(updateStoreContract); }