Category - MVC
Results 6 - 10 of 631
27 Nov 2020 27 Nov 2020 0 Comments  116 Views
Here Mudassar Ahmed Khan has explained with an example, how to delete data from Database using Web API and Entity Framework in ASP.Net MVC Razor.

When the Delete Button is clicked, the DeleteCustomer Action method of the Web API is called using jQuery AJAX and the details of Customer are sent as JSON object.

Finally, a Customer object is sent to the View which indicates that the record was successfully deleted or not.
24 Nov 2020 24 Nov 2020 0 Comments  165 Views
Here Mudassar Ahmed Khan has explained with an example, how to create and consume a Web API PUT Action method in ASP.Net MVC Razor.

HTTP PUT method is used to update an existing record in the data in the RESTful API.

This article will illustrate how to create a PUT Action method in Web API and use it for updating records in Database using Entity Framework in ASP.Net MVC Razor.
24 Nov 2020 24 Nov 2020 0 Comments  181 Views
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Web API from MVC Controller using HttpClient class in ASP.Net MVC Razor.

This article will illustrate how to call a Web API GET method with its URL using HttpClient class in ASP.Net MVC Razor.
24 Nov 2020 24 Nov 2020 0 Comments  142 Views
Here Mudassar Ahmed Khan has explained with an example, how to call Web API from MVC Controller in same Solution (Project) in ASP.Net MVC Razor.

This article will illustrate how to call a Web API method using its URL from another project in same Project or same Solution in ASP.Net MVC Razor.
24 Nov 2020 24 Nov 2020 0 Comments  161 Views
Here Mudassar Ahmed Khan has explained with an example, how to create and consume a Web API POST Action method in ASP.Net MVC Razor.

This article will illustrate how to create a POST Action method in Web API and use it for inserting records in Database using Entity Framework in ASP.Net MVC Razor.
Results 6 - 10 of 631