示例#1
0
        public ActionResult Add_Address(string name, string detail, string quyu, string pro, string tele, string city)
        {
            int uid = Convert.ToInt32(Session["User_id"].ToString());

            if (!detail.Contains(quyu))
            {
                detail = quyu + detail;
            }
            if (!detail.Contains(city))
            {
                detail = city + detail;
            }
            if (!detail.Contains(pro))
            {
                detail = pro + detail;
            }
            AddressManager am = new AddressManager();

            am.Add_Address(name, tele, city, pro, quyu, detail, uid);
            return(RedirectToAction("Address_List"));
        }