예제 #1
0
        public JsonResult BindStateList(int id)
        {
            var state = Bc.GetStateListByCountryId(id);

            //var state = from s in db.States
            //            where s.CountryID == id
            //            select s;

            return(Json(new SelectList(state.ToArray(), "StateID", "State1"), JsonRequestBehavior.AllowGet));
        }