public IActionResult GoogleSignIn() { string googleId = User.Claims.FirstOrDefault(x => x.Type.EndsWith("nameidentifier"))?.Value; return(_queryRepo.Query(new CustomerQueryModel { GoogleUserId = googleId }) .Map(x => SignInUser(x, googleId)) .Reduce(_ => InternalServerError(), x => _logger.LogError(x.ToString()))); }
/// <summary> /// Updates tab "kasa" /// </summary> public void UpdateKasaTab() { var customerList = _customerQueryRepo.Query(new CustomerQueryModel()) .Map(x => x.Items.ToList()) .Reduce(_ => throw new Exception()); _teglasConector.WriteKasaTab(customerList); _lipaConector.WriteKasaTab(customerList); _hedoneConector.WriteKasaTab(customerList); }