Felbook.Models.User.CreateUser C# (CSharp) Method

CreateUser() public static method

Create a new User object.
public static CreateUser ( global id, global name, global surname, global created, global mail, global username, global passwordHash ) : User
id global Initial value of the Id property.
name global Initial value of the Name property.
surname global Initial value of the Surname property.
created global Initial value of the Created property.
mail global Initial value of the Mail property.
username global Initial value of the Username property.
passwordHash global Initial value of the PasswordHash property.
return User
        public static User CreateUser(global::System.Int32 id, global::System.String name, global::System.String surname, global::System.DateTime created, global::System.String mail, global::System.String username, global::System.String passwordHash)
        {
            User user = new User();
            user.Id = id;
            user.Name = name;
            user.Surname = surname;
            user.Created = created;
            user.Mail = mail;
            user.Username = username;
            user.PasswordHash = passwordHash;
            return user;
        }