public async Task <IActionResult> Delete([FromRoute] Guid id) { await appService.Delete(new DeletePersonaCommand(id)); return(NoContent()); }
public IActionResult Delete([FromRoute] Guid id) { appService.Delete(new DeletePersonaCommand(id)); return(Ok()); }
public async Task Delete(Guid id) { var commandDelete = new DeletePersonaCommand(id); await appService.Delete(commandDelete); }
public void Delete(Guid id) { var commandDelete = new DeletePersonaCommand(id); appService.Delete(commandDelete); }