public async Task <PhoneNumberViewModel> AddPhoneNumber(int contactId, CreatePhoneNumberCommand command) { command.ContactId = contactId; return(await _mediator.Send(command)); }
public async Task <IActionResult> Create(CreatePhoneNumberCommand command) { await Mediator.Send(command); return(NoContent()); }