public Book PostBook(Book book)
        {
            APIPostJSON <Book> pbook = new APIPostJSON <Book>(hostname, "api/Books", book);

            return(pbook.data);
        }
Ejemplo n.º 2
0
        public Concerthall PostConcerthall(Concerthall concerthall)
        {
            APIPostJSON <Concerthall> postConcerthall = new APIPostJSON <Concerthall>(this._hostname, this._servicepath + "ConcertHalls/", concerthall);

            return(postConcerthall.data);
        }
Ejemplo n.º 3
0
        public Book PostBook(Book book) //Opretter et nyt Book objekt på BookService Web API
        {
            APIPostJSON <Book> bookpost = new APIPostJSON <Book>(this.hostname, this.servicepath + "Books", book);

            return(bookpost.data);
        }
Ejemplo n.º 4
0
        public Venue PostVenue(Venue venue) //Case 1
        {
            APIPostJSON <Venue> venuepost = new APIPostJSON <Venue>(hostname, servicepath + "Venues", venue);

            return(venuepost.data);
        }
Ejemplo n.º 5
0
        public Author PostAuthor(Author author) //Opretter et nyt Author objekt på BookService Web API
        {
            APIPostJSON <Author> athpost = new APIPostJSON <Author>(this.hostname, this.servicepath + "Authors", author);

            return(athpost.data);
        }