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
How to create custom attribute in mvc?
By implementing Attribute class.
JK IT Training
What is dot net MVC?
It is a design pattern. .NET MVC is a successful template above asp.net framework. .NET MVC is used to develop web applications from the scratch
Tina
Is developing a website in .net easy or in php?
In php developing an app is easy.
Nithish REDDY

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

Ask a Question

Related Lessons

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 .

Trends in .Net Platform
.NET Framework is a software framework developed by Microsoft. It includes a large class library named Framework Class Library (FCL) and provides language interoperability (each language can use code written...

.NET With AngularJS Training Program Syllabus
What You will Learn in .NET with AngularJS Training Program? Introduction to .Net: Features of .Net, CTS, CLS, CLR and MSIL. C# & .Net Basics and Branching & Flow Control. OOPs Concepts,...

Garbage collector [ GC ] in .NET framework
Garbage collector is responsible for the "automatic memory management - AMM" in .NET framework. Garbage collector is one of the properties of .NET framework components CLR . Why there is a need of "Memory...
R

Raga Deepthi G.

1 0
0

Export To Excel using StringBuilder in ASP.net MVC C#
public ActionResult Export() { StringBuilder sb = new StringBuilder(); //static file name, can be changes as per requirement string sFileName = "filename.xls"; //Bind...
M

Mohammad Shafi

1 0
1

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