Beispiel #1
0
        private Quibble UpdateQuibble(int id)
        {
            var quibble = this.Bind <Quibble>();

            _service.Update(quibble);
            return(quibble);
        }
Beispiel #2
0
        private static void Edit(int index)
        {
            Console.WriteLine("---------------");
            Console.Write("Category of quibble? ");
            var category = Console.ReadLine();

            Console.Write("Text? ");
            var text    = Console.ReadLine();
            var quibble = new Quibble
            {
                Id       = index,
                Category = category,
                Text     = text
            };

            _service.Update(quibble);
        }
Beispiel #3
0
 // [WebInvoke(Method = "PATCH", UriTemplate = "/Quibble/{id}")]
 // http://localhost:53482/Service.svc/Quibble/2
 public Quibble Update(string id, Quibble quibble)
 {
     return(_service.Update(quibble));
 }
Beispiel #4
0
 public void Update(Quibble quibble)
 {
     _service.Update(quibble);
 }