public async Task <IActionResult> Post(WebApiModels.Movie movie) { string id = IdGenerator.New(); await _bus.Send(movie.GetCommand(id)); return(CreatedAtAction(nameof(Get), new { id }, id)); }
public async Task Put(string id, WebApiModels.Movie movie) { await _bus.Send(movie.GetCommand(id)); }