public Member_securityInfo Save() { if (this.Member_id != null) { Member_security.Update(this); return(this); } return(Member_security.Insert(this)); }
public APIReturn _Add([FromForm] uint?Member_id, [FromForm] string Password) { Member_securityInfo item = new Member_securityInfo(); item.Member_id = Member_id; item.Password = Password; item = Member_security.Insert(item); return(APIReturn.成功.SetData("item", item.ToBson())); }
public Member_securityInfo AddSecurity(string Password) => Member_security.Insert(new Member_securityInfo { Member_id = this.Id, Password = Password });