public BaseRetornoDTO <bool> Delete(int id)
        {
            BaseRetornoDTO <bool> retornoDTO = new BaseRetornoDTO <bool>();

            BaseExceptionSystem <bool> .BaseHandleExcetion(() =>
            {
                _bancoRepository.Delete(id);
                retornoDTO.Value = true;
            }, MensagemSistema.FormataMensagem(MensagemSistema.Excluir, MensagemSistema.Banco), ref retornoDTO);

            return(retornoDTO);
        }
示例#2
0
 public bool Delete(int id)
 {
     return(bancoRepository.Delete(id));
 }