//Excluir um registro public string Delete(Pais pais) { StringBuilder erros = new StringBuilder(); if (pais.Id == 0) { erros.AppendLine("O ID deve ser informado."); } if (erros.Length != 0) { return(erros.ToString()); } string respostaDB = dal.Delete(pais); return(respostaDB); }
public static bool Delete(DTO.PaisDTO myPaisDTO) { bool resultado = PaisDAL.Delete(myPaisDTO); return(resultado); }