示例#1
0
        public int StoreMember(Member member)
        {
            DataStore.StoreMember(member);
            MembersCache.Add(member.MemberId, member);

            return member.MemberId;
        }
 public int StoreMember(Member member)
 {
     using (SqlServerMembersDb Db = new SqlServerMembersDb(ConnectionString))
     {
         Db.Members.Add(member);
         Db.SaveChanges();
     }
     return member.MemberId;
 }