public List <ContratoEntity> ObterTodos(string cpfUsu)
        {
            IContratoDAO iContratoDAO = (IContratoDAO)DAOFactory.CreateDAO <IContratoDAO>();

            return(iContratoDAO.ObterTodos(cpfUsu));
        }
Beispiel #2
0
 public ContratoController(IContratoDAO contratoDAO)
 {
     _contratoDAO = contratoDAO;
 }
        public ContratoEntity ObterAtivo(string cpfUsu)
        {
            IContratoDAO iContratoDAO = (IContratoDAO)DAOFactory.CreateDAO <IContratoDAO>();

            return(iContratoDAO.ObterAtivo(cpfUsu));
        }
        public bool RemoverTodos(string cpfUsu)
        {
            IContratoDAO iContratoDAO = (IContratoDAO)DAOFactory.CreateDAO <IContratoDAO>();

            return(iContratoDAO.RemoverTodos(cpfUsu));
        }
        public bool Cancelar(string cpfUsu)
        {
            IContratoDAO iContratoDAO = (IContratoDAO)DAOFactory.CreateDAO <IContratoDAO>();

            return(iContratoDAO.Cancelar(cpfUsu));
        }
        public bool Atualizar(ContratoEntity contrato)
        {
            IContratoDAO iContratoDAO = (IContratoDAO)DAOFactory.CreateDAO <IContratoDAO>();

            return(iContratoDAO.Atualizar(contrato));
        }
        public bool Inserir(ContratoEntity contrato)
        {
            IContratoDAO iContratoDAO = (IContratoDAO)DAOFactory.CreateDAO <IContratoDAO>();

            return(iContratoDAO.Inserir(contrato));
        }