public static users userByToken(bio_bookingEntities dataBase, string token) { IQueryable <users> userQuerry = dataBase.users.Where(userFind => userFind.email == token); int existingUsers = userQuerry.Count(); if (existingUsers < 1) { return(null); } users user = userQuerry.First <users>(); return(user); }