コード例 #1
0
        // GET: Cate
        public ActionResult Index()
        {
            var repository = new SublineaServices();

            ViewBag.linea = repository.listsublineas();
            return(View());
        }
コード例 #2
0
        public JsonResult updateandSaveData(int tipo, int id, String sublinea, int idlinea)
        {
            var repository = new SublineaServices();

            var listParameters = repository.updateandSaveData(tipo, id, sublinea, idlinea);

            return(Json(listParameters, JsonRequestBehavior.AllowGet));
        }
コード例 #3
0
        public JsonResult chargeParameters()

        {
            var repository     = new SublineaServices();
            var listParameters = repository.listsublineas();

            return(Json(listParameters, JsonRequestBehavior.AllowGet));
        }
コード例 #4
0
        // GET: Filtro
        public ActionResult Index()
        {
            var repository = new SublineaServices();

            ViewBag.subline = repository.listsublineas();
            var repository2 = new LineaServices();

            ViewBag.line = repository2.listmaterias();
            return(View());
        }