Ejemplo n.º 1
0
        public static string GenerateWord()
        {
            PasswordsEntities passwordsEntities = new PasswordsEntities();
            var query = passwordsEntities.Passwords.OrderBy(x => Guid.NewGuid()).FirstOrDefault().Haslo;

            return(query);
        }
Ejemplo n.º 2
0
        public static string GenerateCategory(string word)
        {
            PasswordsEntities passwordsEntities = new PasswordsEntities();
            var query = passwordsEntities.Passwords.Where(x => x.Haslo == word).FirstOrDefault().Kategoria;

            return(query);
        }