Example #1
0
        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));
        }
Example #2
0
 public async Task Put(string id, WebApiModels.Movie movie)
 {
     await _bus.Send(movie.GetCommand(id));
 }