Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            while (true)
            {
                var kategoriler = new KategoriRepo().GetAll();
                System.Console.Clear();
                System.Console.Beep(10000, 900);
                kategoriler.ForEach(x => System.Console.WriteLine(x.KategoriAdi + " - " + x.Aciklama));

                Thread.Sleep(1000 * 10);
            }
        }
Ejemplo n.º 2
0
        public List <SelectListItem> KategoriSelectList()
        {
            var kategoriList = new KategoriRepo().GetAll();
            var kategoriler  = new List <SelectListItem>();

            kategoriList.ForEach(x =>
                                 kategoriler.Add(new SelectListItem
            {//burda problem var !
                Text  = x.KategoriAdi,
                Value = x.ID.ToString()
            }));
            return(kategoriler);
        }