コード例 #1
0
        public ActionResult Address(DLAddresses ad, string Save)
        {
            try
            {
                string Action;
                if (!String.IsNullOrEmpty(Save))
                {
                    Action = "Insert";
                }
                else
                {
                    Action = "Update";
                }
                ad.CustomerId = Convert.ToInt32(Session["CustomerId"]);
                balOrder.Address(ad, Action);

                return(Redirect("/Order/Orders"));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }