Example #1
0
 private static void EnterPun()
 {
     Console.WriteLine("---------------");
     Console.Write("Name of pun? ");
     var name = Console.ReadLine();
     Console.Write("Pun? ");
     var joke = Console.ReadLine();
     var pun = new Pun
     {
         Title = name,
         Joke = joke
     };
     _service.CreatePun(pun);
 }
Example #2
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);
 }
 public void UpdatePun(Pun pun)
 {
     throw new NotImplementedException();
 }