Example #1
0
        public ActionResult CarregarPublicacaoTipoRegra(int PublicacaoTipoRegraId)
        {
            int SiteId = GetCurrentSite();

            RegraDAL regraDAL = new RegraDAL();
            var resposta = regraDAL.CarregarPublicacaoTipoRegra(PublicacaoTipoRegraId, SiteId);

            return Json(resposta, JsonRequestBehavior.AllowGet);
        }
Example #2
0
        public ActionResult CarregarRegraPasso(int RegraPassoId, int RegraId)
        {
            RegraDAL dal = new RegraDAL();
            RegraPasso dto = new RegraPasso();

            RegraDAL regraDAL = new RegraDAL();
            var resposta = regraDAL.CarregarRegraPasso(RegraPassoId, RegraId);

            return Json(resposta, JsonRequestBehavior.AllowGet);
        }
Example #3
0
        public ActionResult CarregarRegra(int RegraId)
        {
            RegraDAL dal = new RegraDAL();
            Regra dto = new Regra();

            int SiteId = GetCurrentSite();
            int UsuarioId = 1;
            //int IdiomaId = 1;

            //Eventos
            RegraDAL regraDAL = new RegraDAL();
            var resposta = regraDAL.Carregar(SiteId, 0, RegraId, UsuarioId);

            return Json(resposta, JsonRequestBehavior.AllowGet);
        }
Example #4
0
        public ActionResult ListarRegraPassoCondicao(int RegraPassoId)
        {
            RegraDAL regraDAL = new RegraDAL();
            List<RegraPassoCondicao> lista = regraDAL.ListarRegraPassoCondicao(RegraPassoId);

            return Json(lista, JsonRequestBehavior.AllowGet);
        }
Example #5
0
        public ActionResult ListarRegra()
        {
            int SiteId = GetCurrentSite();
            //int UsuarioId = 1;
            //int IdiomaId = 1;

            RegraDAL regraDAL = new RegraDAL();
            List<Regra> lista = regraDAL.ListarRegra(SiteId);

            return Json(lista, JsonRequestBehavior.AllowGet);
        }
Example #6
0
        public ActionResult ListarPublicacaoTipoRegra()
        {
            int SiteId = GetCurrentSite();

            RegraDAL regraDAL = new RegraDAL();
            List<PublicacaoTipoRegra> lista = regraDAL.ListarPublicacaoTipoRegra(null, SiteId);

            return Json(lista, JsonRequestBehavior.AllowGet);
        }