Ejemplo n.º 1
0
        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());
 }
Ejemplo n.º 3
0
 public async Task Delete(Guid id)
 {
     var commandDelete = new DeletePersonaCommand(id);
     await appService.Delete(commandDelete);
 }
Ejemplo n.º 4
0
        public void Delete(Guid id)
        {
            var commandDelete = new DeletePersonaCommand(id);

            appService.Delete(commandDelete);
        }