Example #1
0
 public User AddUser(User user)
 {
     if (user != null)
     {
         _dbContext.Users.Add(user);
         _dbContext.SaveChanges();
         return(user);
     }
     return(null);
 }
Example #2
0
 public Member AddMember(Member member)
 {
     _dbContext.Members.Add(member);
     _dbContext.SaveChanges();
     return(member);
 }