public new static bool Save ( MSTech.GestaoEscolar.Entities.ACA_CalendarioEscola entity , MSTech.Data.Common.TalkDBTransaction banco ) { try { if (entity.Validate()) { ACA_CalendarioEscolaDAO dao = new ACA_CalendarioEscolaDAO(); dao._Banco = banco; dao.Salvar(entity); } else { throw new MSTech.Validation.Exceptions.ValidationException(entity.PropertiesErrorList[0].Message); } return(true); } catch { throw; } }
public static bool Save ( MSTech.GestaoEscolar.Entities.ACA_AlunoIrmao entityAlunoIrmao , MSTech.Data.Common.TalkDBTransaction banco ) { if (entityAlunoIrmao.Validate()) { ACA_AlunoIrmaoDAO alurespDAO = new ACA_AlunoIrmaoDAO(); alurespDAO._Banco = banco; return(alurespDAO.Salvar(entityAlunoIrmao)); } else { throw new MSTech.Validation.Exceptions.ValidationException(entityAlunoIrmao.PropertiesErrorList[0].Message); } }