public void AddUser(User user) { photoContext.Users.Add(user); photoContext.SaveChanges(); }
public void Save(User user) { photoContext.Entry(user).State = EntityState.Modified; photoContext.SaveChanges(); }
public void Rate(int rating, User user) { ///TODO: Add or update rating for user. }