Beispiel #1
0
        private static void EditPun(int index)
        {
            Console.WriteLine("---------------");
            Console.Write("Name of pun? ");
            var name = Console.ReadLine();

            Console.Write("Pun? ");
            var joke = Console.ReadLine();
            var pun  = new Pun
            {
                PunID = index,
                Title = name,
                Joke  = joke
            };

            _service.UpdatePun(pun);
        }
Beispiel #2
0
 public void UpdatePun(Pun pun)
 {
     _service.UpdatePun(pun);
 }
Beispiel #3
0
 public Pun UpdatePun(string punID, Pun pun)
 {
     return(_service.UpdatePun(pun));
 }