コード例 #1
0
 public ActionResult ConsultarCancelacProvTrafIngresoROM(int?pageSize = 10, int?pageCurrent = 1)
 {
     try
     {
         IEnumerable <CancelacProvTrafIngresoROM> lst = ConsultarBase
                                                        .GetAll <CancelacProvTrafIngresoROM>(pageSize.Value, pageCurrent.Value);
         return(Json(lst, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         TempData["ERRORCI"] = ex.Message;
         return(Json(new object[] { }));
     }
 }
コード例 #2
0
 public ActionResult ConsultarPROVTARIFA_MesAnteriorROM(int?pageSize = 10, int?pageCurrent = 1)
 {
     try
     {
         IEnumerable <PROVTARIFA_MesAnteriorROM> lst = ConsultarBase
                                                       .GetAll <PROVTARIFA_MesAnteriorROM>(pageSize.Value, pageCurrent.Value);
         return(Json(lst, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         TempData["ERRORCI"] = ex.Message;
         return(Json(new object[] { }, JsonRequestBehavior.AllowGet));
     }
 }
コード例 #3
0
 public ActionResult ConsultarDevAcumTraficoIngresoROM(int?pageSize = 10, int?pageCurrent = 1)
 {
     try
     {
         IEnumerable <DevAcumTraficoIngresoROM> lst = ConsultarBase
                                                      .GetAll <DevAcumTraficoIngresoROM>(pageSize.Value, pageCurrent.Value);
         return(Json(lst, JsonRequestBehavior.AllowGet));
         //ICPruebaEntities db = new ICPruebaEntities();
         //List<GestionAcuerdos> lst = db.DevAcumTraficoIngresoROM.ToList();
     }
     catch (Exception ex)
     {
         TempData["ERRORCI"] = ex.Message;
         return(Json(new object[] { }));
     }
 }