Exemple #1
0
 public static string GetPhoneNumber(ForViewModel userGet, CancellationToken cancellationToken)
 {
     if (userGet == null)
     {
         throw new InvalidOperationException("User not found");
     }
     return(userGet.PhoneNumber);
 }
Exemple #2
0
 public static bool GetPhoneNumberConfirmed(ForViewModel userGet, CancellationToken cancellationToken)
 {
     if (userGet == null)
     {
         throw new InvalidOperationException("User not found");
     }
     return(true);
 }
Exemple #3
0
 internal static string GetEmail(ForViewModel userGet, CancellationToken cancellationToken)
 {
     if (userGet == null)
     {
         throw new InvalidOperationException("User not found");
     }
     return(userGet.Email);
 }