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)); }
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)); }