public JsonResult CargaComboArea(SGP_Entity.Area Datos) { try { var data = SGP_Data.Area.Instance.Sel_ComboArea(Datos); return(Json(data, JsonRequestBehavior.AllowGet)); } catch (Exception e) { return(Json(e.Message, JsonRequestBehavior.AllowGet)); } }
public JsonResult Ins_Area(SGP_Entity.Area Datos) { try { Datos.co_usuario_registro = HttpContext.Application["gUsuario"].ToString(); var data = SGP_Data.Area.Instance.Ins_Area(Datos); return(Json(data, JsonRequestBehavior.AllowGet)); } catch (Exception e) { return(Json(e.Message, JsonRequestBehavior.AllowGet)); } }