public int post_user(User user, UserRepository users)
        {
            users.Users.Add(user);

            return(201); // Created
        }
 public static User[] get_users(UserRepository users)
 {
     return(users.Users.ToArray());
 }
 public static User get_user_name(string name, UserRepository users)
 {
     return(users.Users.FirstOrDefault(x => x.Name == name));
 }