Esempio n. 1
0
        public ActionResult GetVillageDataList(watershed_village_data vil)
        {
            String citylist = StateList.GetVillageDataList(vil.village_id);

            try
            {
                return(Json(new
                {
                    msg = "success ",
                    list = citylist
                }));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 2
0
        public ActionResult GetVillageData(watershed_village_data vil)
        {
            watershed_village_data citylist = StateList.GetVillageDataList(vil);

            citylist.watershed_village = DAL.VillageDataDal.getVillageById(citylist.village_id);

            this.Session.Add("villagedata", citylist);
            try
            {
                return(Json(new
                {
                    msg = "success ",
                    wateravail = citylist.wateravail,
                    water_sarcacity = citylist.water_sarcacity,
                    cycle_year = citylist.cycle_year.Year.ToString(),
                    Area = citylist.watershed_village.Area
                }));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }