// GET: Common

        public JsonResult getstate(string countryid)
        {
            OrgService.OrganizationServiceClient organizationservice = new OrgService.OrganizationServiceClient();
            int ID = Convert.ToInt32(countryid);
            List <SelectListItem> state = new List <SelectListItem>();
            string  strXMLStates        = organizationservice.GetStateList(ID);
            DataSet dsstate             = new DataSet();


            dsstate.ReadXml(new StringReader(strXMLStates));
            if (dsstate.Tables.Count > 0)
            {
                foreach (System.Data.DataRow row in dsstate.Tables[0].Rows)
                {
                    state.Add(new SelectListItem()
                    {
                        Text = row["State_Name"].ToString(), Value = row["State_ID"].ToString()
                    });
                }
            }
            return(Json(state, JsonRequestBehavior.AllowGet));
        }