}//end mostrar vista

        public ActionResult RegistrarConsumoAguaAntiguoView()
        {
            Models.HidrometroModel hidroModel = new Models.HidrometroModel();
            PlantaModel planta = new PlantaModel();
            String email = Session["email"].ToString();
            if (email != null)
            {
                int id_planta = planta.obtenerUsuarioPlanta(email);
                ViewData["Hidros"] = hidroModel.obtenerHidrometrosPorPlanta(id_planta);
                return View();
            }else{
                return View();
            }
       } 
        }//end mostrar vista

        public ActionResult ObtenerHidros(int id_planta)
        {
            Models.HidrometroModel hidroModel = new Models.HidrometroModel();
            PlantaModel planta = new PlantaModel();
            return Json(hidroModel.obtenerHidrometrosPorPlanta(id_planta),JsonRequestBehavior.AllowGet);
        }//end mostrar vista