Exemple #1
0
 public void SubscribeToFeed(Twitter_Shared.Data.Model.User user, Twitter_Shared.Data.Model.Feed feed)
 {
     if (user.Subscriptions == null)
     {
         user.Subscriptions = new List <Feed>();
     }
     user.Subscriptions.Add(feed);
     _userRepository.Update(user);
 }
Exemple #2
0
 public void CreateUser(Twitter_Shared.Data.Model.User user)
 {
     _userRepository.Insert(user);
 }