Esempio 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));
        }
Esempio n. 2
0
 public AddCountryCommand(CountryForCreationModel model)
 {
     Model = model;
 }