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)); }
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)); }
// *************** CAUSA ************************************************************* /// <summary> /// Inicio /// </summary> /// <returns>View</returns> public ActionResult AnomCausa() { // preenche o combos List <SelectListItem> lstListacmbAnomLegenda = new AnomaliaBLL().PreenchecmbAnomLegenda(); ViewBag.cmbAnomLegenda = lstListacmbAnomLegenda; return(View()); }