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