public void UpdateJointID(string key, Service.HoldingPen account, int otherID) { ServiceDataContext db = new ServiceDataContext(); account.JointHoldingPenID = otherID; db.SubmitChanges(); }
public bool SendAccount(string key, Service.HoldingPen account, InterestAnswer[] interests) { ServiceDataContext db = new ServiceDataContext(); JavaScriptSerializer js = new JavaScriptSerializer(); account.InterestObjects = js.Serialize(interests); if (account.Password == null) { account.Password = ""; } db.HoldingPens.InsertOnSubmit(account); db.SubmitChanges(); return(true); }