private void detach_SMSGroupMembers(SMSGroupMember entity) { this.SendPropertyChanging(); entity.User = null; }
private void attach_SMSGroupMembers(SMSGroupMember entity) { this.SendPropertyChanging(); entity.SMSGroup = this; }
public ActionResult UserAdd(int groupID, int userID) { var n = new SMSGroupMember(); n.GroupID = groupID; n.UserID = userID; DbUtil.Db.SMSGroupMembers.InsertOnSubmit(n); DbUtil.Db.SubmitChanges(); return Redirect("/Twilio"); }