When we use WebAPI controller in Asp.Net MVC

Asked by Last Modified  

18 Answers

Learn .Net MVC

Follow 1
Answer

Please enter your answer

Certified, Expert and Experienced AWS Cloud Trainer & Angular & Web development Trainer

To understand it , First understand the objective of WEB API and MVC WEB API : This technology is designed to develope HTTP Service that would be consumed by many device MVC : This is a framework that help to create full fledge web application that can consume WEB API service or any other service so...
read more
To understand it , First understand the objective of WEB API and MVC WEB API : This technology is designed to develope HTTP Service that would be consumed by many device MVC : This is a framework that help to create full fledge web application that can consume WEB API service or any other service so you want to develop service using WEB API that would be consumed by MVC then you can combine both technology and do your task read less
Comments

When we consider the current widespread use of IT through various Gadgets like PC, Laptop, Tabs, Mobiles developers need to Expose some functionality to Gadgets irrespective of platforms, HTTP Asp.Net Web API enables one to do it by returning light weight data notation like JSON. And also get many advantages...
read more
When we consider the current widespread use of IT through various Gadgets like PC, Laptop, Tabs, Mobiles developers need to Expose some functionality to Gadgets irrespective of platforms, HTTP Asp.Net Web API enables one to do it by returning light weight data notation like JSON. And also get many advantages over SOAP. read less
Comments

Azure.NET, MEAN, GenAI, OpenAI, Agentic AI, Prompt Engineering & Devops Trainer 16 years experienced

To create restful web services we have to Web API
Comments

Senior Software Engineer

We Use Web API when you have multiple consuming clients such as light weight mobile Apps or a Saas Application, the you have REST based Web Api as a service which need not know which client is calling the API. Whereas On the other hand default Controller in MVC is used to build applications that have...
read more
We Use Web API when you have multiple consuming clients such as light weight mobile Apps or a Saas Application, the you have REST based Web Api as a service which need not know which client is calling the API. Whereas On the other hand default Controller in MVC is used to build applications that have Views. WebAPIs does not use Views they are used to return data, instead Web API return plane JSON data to be consumed by clients. read less
Comments

We use WebAPI Controller in Asp.Net MVC to call the controller actions in the view through Jquery and return Json data.
Comments

Professional Training Provider (Focus on to clear Basic Concept)

While using jsframework like angularjs or knockoutjs etc.. then need webservices for grep data or put data so use WebAPI it will return Json Object (or XML Object)...
Comments

.Net Trainer,React JS,Java Script and Angular

Refer this page http://www.codeproject.com/Articles/826359/Consuming-ASP-NET-WEB-API-using-ASP-NET-MVC-and-Re
Comments

Software professional who loves to share his knowledge

Web API uses ApiController and is used to build REST based web services that are light weight. These can be invoked by multiple types of clients eg. Desktop, Mobile Devices. Typically the clients are built using Java script frameworks like AngujarJS or KnockoutJS. On the other hand default Controller...
read more
Web API uses ApiController and is used to build REST based web services that are light weight. These can be invoked by multiple types of clients eg. Desktop, Mobile Devices. Typically the clients are built using Java script frameworks like AngujarJS or KnockoutJS. On the other hand default Controller in MVC is used to build applications that have Views. WebAPIs does not use Views they are used to return data. Hope that helps you to understand. read less
Comments

.Net Technical Leader in Microsoft Technologies

When you need to implement rest services and caller decide on the type of response, xml or json, then WebApi is the better choice. To do the same from other services, there is required to implement extra code at service end.
Comments

IT Trainer

Web API is used for building HTTP services that can be consumed by browsers, mobiles, iphone and tablets. Use Web API when you need to return JSON/XML response to client.
Comments

View 16 more Answers

Related Questions

How to use .net mvc?
visual studio 2012 or after that version supports mvc application, but you should also need to understand razor view, html5, linq for working on mvc.
Jayant
what is asp .net in future
No future in asp.net, only Future in MVC.Net. Thanks
Ajaz
When do you use Html.Action over Html.Partial ?
Html.Action() will call action method. e.g. Html.Action("Test") Html.Partial() just renders partial view. e.g Html.Partial("PartialName");
JK IT Training
which .net is good .net silver light or share point?
SharePoint, wpf, asp.net, Silverlight, winforms they all use the .net library that are commononly referenced. Since SharePoint is built on ASP.NET, the argument can be made that anything you can do with...
Rupali
I want to do Project in MVC 6 with using WebAPI, Entity Framework and LINQ.
. I am working as a senior developer and I deliver same knowledge in my classes with project.I can help you in this.
Ashish

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Multi-core CPU utilization using Task Parallel Library in c#
Nowadays, we are using multiple core systems. We must write our .NET applications in such a way that we must utilise the complete computing power of the machine. The parallel task library(TPL) allows...

Benefits of Angular JS over traditional JavaScript and jquery
1. Easy designing web pages 2. Code reusability 3. Client validations more optimized and faster . 4. MVC architecture finds suitable interface to accept server responses Back in more customized manner .

Benefits of AsP.net webapi over traditional asp.net 2 and 3.5
Tradional asp.net had slower server side response feedback to the server with the MVC concept on webapi there were faster responses from the server side for client requests. Optimization of code was main...

Inversion of Control
Problem You have classes that have dependencies on services or components whose concrete type is specified at design time. In this example, ClassA has dependencies on ServiceA and ServiceB. Figure 1 illustrates...

ASP.Net MVC 5 Error: The controller for path '/' was not found or does not implement IController
When a page, that is located inside an area, wants to access a controller that is located outside of this area (such as a shared layout page or a certain page inside a different area), the area of this...
M

Mohammad Shafi

0 0
0

Looking for .NET MVC ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you