Beispiel #1
0
 public Task <LoginRequest> Create(LoginRequestReason reason, long userId, long?groupChatId, long privateChatId, string trackId = null)
 {
     return(_loginRequestRepository.Upsert(new LoginRequest
     {
         UserId = userId,
         Id = Guid.NewGuid().ToString(),
         ExpiresAt = DateTimeOffset.UtcNow.AddMinutes(_loginRequestExpiresInMinutes),
         GroupChatId = groupChatId,
         PrivateChatId = privateChatId,
         TrackId = trackId,
         Reason = reason
     }));
 }
 private Task <LoginRequest> InsertLoginRequest()
 {
     return(_loginRequestRepository.Upsert(CreateLoginRequest()));
 }