private async Task <HttpResponseMessage> PostSalesChannel(string salesChannelId, string[] locations) { var command = new SetSalesChannel.Command(salesChannelId, locations); return(await _client.PostAsJsonAsync(Urls.SetSalesChannel, command)); }
public async Task <SetSalesChannel.Response> SetSalesChannel(SetSalesChannel.Command command) { return(await _mediator.Send(command)); }