示例#1
0
        public JsonResult AnomFluxoStatus_Excluir(int id)
        {
            int  retorno = new AnomaliaBLL().AnomFluxoStatus_Excluir(id);
            bool valid   = retorno >= 0;

            return(Json(new { status = valid, erroId = retorno }, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public JsonResult AnomLegenda_AtivarDesativar(int id)
        {
            int  retorno = new AnomaliaBLL().AnomLegenda_AtivarDesativar(id);
            bool valid   = retorno >= 0;

            return(Json(new { status = valid, erroId = retorno }, JsonRequestBehavior.AllowGet));
        }
示例#3
0
        // *************** CAUSA  *************************************************************
        /// <summary>
        /// Inicio
        /// </summary>
        /// <returns>View</returns>
        public ActionResult AnomCausa()
        {
            // preenche o combos
            List <SelectListItem> lstListacmbAnomLegenda = new AnomaliaBLL().PreenchecmbAnomLegenda();

            ViewBag.cmbAnomLegenda = lstListacmbAnomLegenda;

            return(View());
        }