public async Task <IActionResult> AddCountry([FromBody] CountryForCreationModel model) { var id = await _mediator.Send(new AddCountryCommand(model)); return(CreatedAtAction(nameof(GetCountry), new { id }, model)); }
public AddCountryCommand(CountryForCreationModel model) { Model = model; }