Ejemplo n.º 1
0
        public async Task <IActionResult> UpdateBook(int id)
        {
            BookWebServiceClient bookWebServiceClient = new BookWebServiceClient();
            retrieveBookResponse response             = await bookWebServiceClient.retrieveBookAsync(id);

            retrieveBookRsp rsp = response.@return;

            return(View(rsp.book));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> ViewBookDetails(int id)
        {
            BookWebServiceClient bookWebServiceClient = new BookWebServiceClient();
            retrieveBookResponse response             = await bookWebServiceClient.retrieveBookAsync(id);

            retrieveBookRsp rsp = response.@return;

            Demo03ViewModel demo03ViewModel = new Demo03ViewModel();

            demo03ViewModel.SelectedBookToView = rsp.book;

            return(View(demo03ViewModel));
        }