public Order_addressInfo Save() { if (this.Order_id != null) { Order_address.Update(this); return(this); } return(Order_address.Insert(this)); }
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())); }
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 });