public ResultViewModel <IList <DuvidasAcademicasProfessorViewModel> > GetDuvidasProfessor(string idProfessor)
        {
            var result = Execute(() =>
            {//
                var business      = new DuvidasAcademicasBusiness(new DuvidasAcademicasEntity(), new FuncionarioEntity(), new MaterialApostilaEntity(), new ConcursoEntity(), new NotificacaoDuvidasAcademicasBusiness(new NotificacaoDuvidasAcademicasEntity()));
                var contribuicoes = business.GetDuvidasProfessor(Convert.ToInt32(idProfessor));
                return(contribuicoes);
            }, true);

            return(GetResultViewModel <IList <DuvidasAcademicasProfessorViewModel>, IList <DuvidasAcademicasProfessorDTO> >(result));
        }
        public ResultViewModel <bool> SetDuvidaAcademicaPrivada(DuvidasRespostaPrivadaDTO obj)
        {
            var result = Execute(() =>
            {
                var business = new DuvidasAcademicasBusiness(new DuvidasAcademicasEntity(), new FuncionarioEntity(), new MaterialApostilaEntity(), new ConcursoEntity(), new NotificacaoDuvidasAcademicasBusiness(new NotificacaoDuvidasAcademicasEntity()));
                var resposta = business.SetDuvidaAcademicaPrivada(obj);
                return(resposta);
            });

            return(GetResultViewModel(result));
        }