/// <summary> /// Method check if in our database already exists "login" /// </summary> /// <param name="Database"></param> /// <returns> Number of found objects </returns> private int Check_If_Exists(Classes.Database Database) { // Prepare query var query = $"SELECT COUNT(*) FROM admins WHERE login = '******'"; // Send ask // Return result return(Database.Count(query)); }