public async Task <UserAuthentication> CreateUserAuthenticationAsync(int userId, string hashedPassword, bool isEmailConfirmed, string fcmToken, int os) { if (userId <= 0) { throw new ArgumentOutOfRangeException(nameof(userId)); } var userAuth = new UserAuthentication { UserId = userId, HashedPassword = hashedPassword, IsEmailConfirmed = isEmailConfirmed }; return(await _authStorage.CreateUserAuthenticationAsync(userAuth, fcmToken, os)); }