public User AddUser(string name) { var user = new User { Name = name, Seniority = CurrentSeniority++ }; users.Add(user); return user; }
private void LogInUser(User user) { // TODO: set session information, etc. }
public Post(NSDictionary attributes) { Text = ((NSString)attributes["text"]).ToString(); User = new User((NSDictionary)attributes["user"]); }
private void UpdateUser(User user) { // TODO: update the user in the database with the new password hash }