public async Task <ActionResult <int> > AddEntry([FromBody] AddEntryToPhonebookCommand command)
        {
            var entryId = await Mediator.Send(command);

            return(Ok(entryId));
        }
Exemple #2
0
 public async Task <IActionResult> AddEntryToPhonebook(AddEntryToPhonebookCommand command)
 {
     return(Ok(await Mediator.Send(command)));
 }