public KoretojDTO Get(int id)
        {
            KoretojDTO mitKoretoj = new KoretojDTO();

            if (id == 1)
            {
                MC minMCStorebaelt = new MC();
                mitKoretoj.pris = minMCStorebaelt.Pris();
                mitKoretoj.type = minMCStorebaelt.KøreTøjType();

                return(mitKoretoj);
            }
            if (id == 2)
            {
                Bil minBilStorebaelt = new Bil();
                mitKoretoj.pris = minBilStorebaelt.Pris();
                mitKoretoj.type = minBilStorebaelt.KøreTøjType();

                return(mitKoretoj);
            }
            else
            {
                return(mitKoretoj);
            }
        }
示例#2
0
        public String GetBilType()
        {
            var bil = new Bil();

            return(bil.KøreTøjType());
        }