예제 #1
0
 public JsonResult Sel_Ccosto(SGP_Entity.Ccosto Datos)
 {
     try
     {
         var data = SGP_Data.Ccosto.Instance.Sel_Ccosto(Datos);
         return(Json(data, JsonRequestBehavior.AllowGet));
     }
     catch (Exception e)
     {
         return(Json(e.Message, JsonRequestBehavior.AllowGet));
     }
 }
예제 #2
0
        public JsonResult Del_Ccosto(SGP_Entity.Ccosto Datos)
        {
            try
            {
                Datos.co_usuario_eliminacion = HttpContext.Application["gUsuario"].ToString();
                var data = SGP_Data.Ccosto.Instance.Del_Ccosto(Datos);

                return(Json(data, JsonRequestBehavior.AllowGet));
            }
            catch (Exception e)
            {
                return(Json(e.Message, JsonRequestBehavior.AllowGet));
            }
        }