Пример #1
0
        public static string GenerateWord()
        {
            PasswordsEntities passwordsEntities = new PasswordsEntities();
            var query = passwordsEntities.Passwords.OrderBy(x => Guid.NewGuid()).FirstOrDefault().Haslo;

            return(query);
        }
Пример #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);
        }