예제 #1
0
 public void DeletarCliente(long clienteId)
 {
     if (clienteId > 0)
     {
         _clienteService.DeletarCliente(clienteId);
     }
 }
예제 #2
0
        public async Task <ActionResult> Delete(long id)
        {
            var dto = _clienteApplicationService.AdquirirCliente(id);

            if (dto != null && dto.Id == id)
            {
                if (await _clienteApplicationService.DeletarCliente(dto.Id))
                {
                    return(Ok());
                }
                return(NotFound());
            }
            return(NotFound());
        }