public async Task <IActionResult> AddCountry([FromBody] CountryForCreationModel model)
        {
            var id = await _mediator.Send(new AddCountryCommand(model));

            return(CreatedAtAction(nameof(GetCountry), new { id }, model));
        }
Beispiel #2
0
 public AddCountryCommand(CountryForCreationModel model)
 {
     Model = model;
 }