public bool Equals(AssociationUserGroupMember other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; if (other.Id == 0 && Id == 0) return false; else return other.Id == Id; }
public ValidateUserGroupMember(AssociationUserGroupMember member) { _member = member; }
public void RemoveUserGroupEmail(int id) { using (var db = new LomsContext()) { var groupEmail = new AssociationUserGroupMember() { Id = id }; db.AssociationUserGroupMembers.Attach(groupEmail); db.AssociationUserGroupMembers.DeleteObject(groupEmail); db.SaveChanges(); } }