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); }
public void CreateUser(Twitter_Shared.Data.Model.User user) { _userRepository.Insert(user); }