private int RegisterUser(string login, string name, string surname, string email, string password) { var imagePath = "~/images/users/user.png"; var hashedPass = password.GetSHA256Hash(); var sqlExpression = string.Format("INSERT INTO users(name, surname, nickname, email, password, image_path) VALUES " + "('{0}','{1}','{2}', '{3}', '{4}', '{5}') RETURNING id;", name, surname, login, email, hashedPass, imagePath); return((int)DAOFactory.AddDataScalar(sqlExpression)); }