public LoginTokenModel GetLoginToken(string token)
 {
     using (DynamoDbContext dbContext = new DynamoDbContext())
     {
         var loginToken = dbContext.Load <LoginTokenModel>(token);
         return(loginToken);
     }
 }
Esempio n. 2
0
 public bool IsFacebookIdFree(string facebookId)
 {
     using (DynamoDbContext dbContext = new DynamoDbContext())
     {
         var auth = dbContext.Load <FacebookAuthModel>(facebookId);
         return(auth == null);
     }
 }
Esempio n. 3
0
 public AuthModel GetAuthByEmail(string email)
 {
     using (DynamoDbContext dbContext = new DynamoDbContext())
     {
         var user = dbContext.Load <AuthModel>(email);
         return(user);
     }
 }
Esempio n. 4
0
 public FacebookAuthModel GetAuthByFacebookId(string facebookId)
 {
     using (DynamoDbContext dbContext = new DynamoDbContext())
     {
         var user = dbContext.Load <FacebookAuthModel>(facebookId);
         return(user);
     }
 }
Esempio n. 5
0
 public bool IsEmailFree(string email)
 {
     using (DynamoDbContext dbContext = new DynamoDbContext())
     {
         var auth = dbContext.Load <AuthModel>(email);
         return(auth == null);
     }
 }