public string RegisterUser(string _surname, string _name, string _lastname , string _phone, string _email, string _login , string _password, int _idcountry, int _idRegion , int _idSity, string _photo ) { string checkUser = dbUser.searchUser(_login, _email, _phone); if (checkUser == "") { user = new User { name_first = _surname, name_last = _lastname, name_middle = _name, phone = _phone, mail = _email, id_country = _idcountry, id_region = _idRegion, id_sity = _idSity, C_status = 1, active = 1, id_language = 1, C_image = _photo.ToString(), date_register = String.Format("{0:d.M.yyyy HH:mm:ss}", DateTime.Now), C_login = _login.ToString(), C_password = _password.ToString() }; dbUser.InsertUser(user); return(""); } else { return(checkUser); } }