public async Task <IActionResult> UpdateCountry(long id, [FromBody] CountryForUpdateModel model)
        {
            await _mediator.Send(new UpdateCountryCommand(id, model));

            return(Ok());
        }
Beispiel #2
0
 public UpdateCountryCommand(long id, CountryForUpdateModel model)
 {
     Id    = id;
     Model = model;
 }