public async Task <bool> SignIn(string email, string password) { var passwordHash = string.IsNullOrEmpty(password) ? string.Empty : Cryptography.GetPasswordHash(password); var response = await client.SendAsync <SignInResult>(HttpMethod.Post, $"{SignInUrl}?email={email}&passwordHash={passwordHash}"); if (!string.IsNullOrEmpty(response.ErrorMessage)) { notificationService.ShowError(response.ErrorMessage); return(false); } userSession.StartSession(response.Result); client.AddAuthentication(response.Result.Token); return(true); }