Пример #1
0
 public Member_securityInfo Save()
 {
     if (this.Member_id != null)
     {
         Member_security.Update(this);
         return(this);
     }
     return(Member_security.Insert(this));
 }
Пример #2
0
        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()));
        }
Пример #3
0
 public Member_securityInfo AddSecurity(string Password) => Member_security.Insert(new Member_securityInfo {
     Member_id = this.Id,
     Password  = Password
 });