Exemplo n.º 1
0
        public List <ProjetoDTO> GetAllData(bool onlyActive)
        {
            ProjetoDAL cmd = new ProjetoDAL();

            return(cmd.GetDataInDataBase(new ProjetoDTO()
            {
                flagAtivo = onlyActive
            }));
        }
Exemplo n.º 2
0
        public ProjetoDTO GetByID(ProjetoDTO _projeto)
        {
            ProjetoDAL cmd = new ProjetoDAL();

            var result = cmd.GetDataInDataBase(_projeto);

            if (result.Count == 1)
            {
                return(result.SingleOrDefault());
            }
            else
            {
                throw new Exception("Erro de Gravação do Projeto");
            }
        }
Exemplo n.º 3
0
        public List <ProjetoDTO> GetDataWithParam(ProjetoDTO _projeto)
        {
            ProjetoDAL cmd = new ProjetoDAL();

            return(cmd.GetDataInDataBase(_projeto));
        }