Example #1
0
        public bool IsAuteurInGebruik(Auteur auteur)
        {
            string sql   = $"select count(*) from boekeb-n where auteurId = '{auteur.Id}'";
            string count = DBService.ExecuteScalar(sql);

            if (count == null)
            {
                return(false);
            }
            if (int.Parse(count) == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Example #2
0
        public bool BestaatAuteurId(string auteurId)
        {
            string sql   = $"select count(*) from auteurs where id = '{auteurId}'";
            string count = DBService.ExecuteScalar(sql);

            if (count == null)
            {
                return(false);
            }
            if (int.Parse(count) == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Example #3
0
        public bool IsUitgeverInGebruik(Uitgever uitgever)
        {
            string sql   = $"select count(*) from boeken where uitgeverId = '{uitgever.Id}'";
            string count = DBService.ExecuteScalar(sql);

            if (count == null)
            {
                return(false);
            }
            if (int.Parse(count) == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }