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