예제 #1
0
        static void ElencoStampanti(IStampantiRepository repo)
        {
            int count = 1;

            foreach (var stamp in repo.GetStampanti())
            {
                Console.WriteLine($"{count} {stamp.Nome} - {stamp.IP}: {stamp.Port}");
                count++;
            }
        }
예제 #2
0
 public HomeController(IStampantiRepository repository)
 {
     _stampantiRepository = repository;
 }