Example #1
0
 public Member Update(string username, Member member)
 {
     for (int i = 0; i < _members.Count; i++)
     {
         if (_members[i].Username.Equals(username))
         {
             _members[i].Username = member.Username;
             _members[i].Password = member.Password;
             _members[i].FullName = member.FullName;
             return(_members[i]);
         }
     }
     return(null);
 }
Example #2
0
 public Member Store(Member member)
 {
     _members.Add(member);
     return(member);
 }