public MemberToken UpdateToken(MemberToken memberToken)
        {
            using (context = new DomainContext())
            {
                context.Configuration.LazyLoadingEnabled = false;

                context.MemberTokens.Attach(memberToken);
                context.Entry<MemberToken>(memberToken).State = EntityState.Modified;

                context.SaveChanges();
            }

            return memberToken;
        }
        public MemberSetting UpdateMemberSetting(MemberSetting memberSetting)
        {
            using (context = new DomainContext())
            {
                context.Configuration.LazyLoadingEnabled = false;

                context.MemberSettings.Attach(memberSetting);

                context.Entry<MemberSetting>(memberSetting).State = EntityState.Modified;

                context.SaveChanges();
            }

            return memberSetting;
        }