public Member_securityInfo Save() { if (this.Member_id != null) { Member_security.Update(this); return(this); } return(Member_security.Insert(this)); }
public APIReturn _Edit([FromQuery] uint Member_id, [FromForm] string Password) { Member_securityInfo item = Member_security.GetItem(Member_id); if (item == null) { return(APIReturn.记录不存在_或者没有权限); } item.Password = Password; int affrows = Member_security.Update(item); if (affrows > 0) { return(APIReturn.成功.SetMessage($"更新成功,影响行数:{affrows}")); } return(APIReturn.失败); }