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

            return(CreatedAtAction(nameof(GetCountry), new { id }, model));
        }
Ejemplo n.º 2
0
 public AddCountryCommand(CountryForCreationModel model)
 {
     Model = model;
 }