Exemple #1
0
        public string RegisterUser(string username, string password)
        {
            var isUserExists = _rpc.IsRecordExists(username);

            if (isUserExists)
            {
                return("Username already exists. Try a different one");
            }
            bool isSuccess = _rpc.SaveRecord(username, password);

            return(isSuccess ? "Registration Successful" : "Registration failed");
        }