コード例 #1
0
        public ActionResult GestorLicenca()
        {
            var dao = new SolicitacaoLicencaDAO();
            IList <SolicitacaoLicenca> solicitacaoLicenca = dao.Lista();

            ViewBag.SolicitacaoLicenca = solicitacaoLicenca.Where(r => r.Status == Status.AguardandoAprovacaodoGestor);
            return(View());
        }
コード例 #2
0
        // GET: SolicitacaoLicenca
        public ActionResult Index()
        {
            var dao = new SolicitacaoLicencaDAO();
            IList <SolicitacaoLicenca> solicitacaoLicenca = dao.Lista();

            ViewBag.SolicitacaoLicenca = solicitacaoLicenca;
            return(View());
        }
コード例 #3
0
        public ActionResult Justificacao(int id)
        {
            var dao = new SolicitacaoLicencaDAO();
            IList <SolicitacaoLicenca> solicitacaoLicenca = dao.Lista();

            ViewBag.SolicitacaoLicenca = solicitacaoLicenca.Where(r => r.Id == id);
            return(View());
        }