Esempio n. 1
0
 public Order_addressInfo Save()
 {
     if (this.Order_id != null)
     {
         Order_address.Update(this);
         return(this);
     }
     return(Order_address.Insert(this));
 }
Esempio n. 2
0
        public APIReturn _Add([FromForm] uint?Order_id, [FromForm] string Address, [FromForm] string Name, [FromForm] string Tel, [FromForm] string Telphone, [FromForm] string Zip)
        {
            Order_addressInfo item = new Order_addressInfo();

            item.Order_id = Order_id;
            item.Address  = Address;
            item.Name     = Name;
            item.Tel      = Tel;
            item.Telphone = Telphone;
            item.Zip      = Zip;
            item          = Order_address.Insert(item);
            return(APIReturn.成功.SetData("item", item.ToBson()));
        }
Esempio n. 3
0
 public Order_addressInfo AddAddress(string Address, string Name, string Tel, string Telphone, string Zip) => Order_address.Insert(new Order_addressInfo {
     Order_id = this.Id,
     Address  = Address,
     Name     = Name,
     Tel      = Tel,
     Telphone = Telphone,
     Zip      = Zip
 });