public async Task<bool> RegisterAsync(UserParse user) { try { await user.SignUpAsync(); return true; } catch (Exception ex) { var msg = ex.Message; return false; } }
// TODO: validate input and send notification before use this method public async Task<bool> RegisterAsync(string username, string password, string emial) { try { var newUser = new UserParse() { Username = username, Password = password, Email = emial }; await newUser.SignUpAsync(); return true; } catch (Exception ex) { var msg = ex.Message; return false; } }