Exemplo n.º 1
0
        public ActionResult selAddress()
        {
            string uid = Session["memberID"].ToString();
            Dictionary <string, object> map = new Dictionary <string, object>();


            OrderBuss obll = new OrderBuss();

            DAO.Order info = obll.getAddress(uid);
            if (info == null)
            {
                map.Add("er", "0");
                return(Json(map, JsonRequestBehavior.AllowGet));
            }
            else
            {
                map.Add("name", info.UserName);
                map.Add("Prov", info.Prov);
                map.Add("City", info.City);
                map.Add("Area", info.Area);
                map.Add("Address", info.Address);
                map.Add("CellPhone", info.CellPhone);
                return(Json(map, JsonRequestBehavior.AllowGet));
            }
        }