public async Task <PriceV1> UpdatePriceAsync(string correlationId, PriceV1 price) { using (Instrument(correlationId, "prices.update_price")) { return(await _controller.UpdatePriceAsync(correlationId, price)); } }
public async Task <PriceV1> CreatePriceAsync(string correlationId, PriceV1 price) { price.Id = price.Id ?? IdGenerator.NextLong(); price.Priority = price.Priority ?? PriceV1.DEFAULT_PRIORITY; return(await _persistence.CreateAsync(correlationId, price)); }
public async Task <PriceV1> UpdatePriceAsync(string correlationId, PriceV1 price) { return(await CallCommandAsync <PriceV1>( "update_price", correlationId, new { price = price } )); }
public async Task <PriceV1> CreatePriceAsync(string correlationId, PriceV1 price) { return(await Task.FromResult(new PriceV1())); }
public async Task <PriceV1> UpdatePriceAsync(string correlationId, PriceV1 price) { price.Priority = price.Priority ?? PriceV1.DEFAULT_PRIORITY; return(await _persistence.UpdateAsync(correlationId, price)); }