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

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
what is asp .net in future
No future in asp.net, only Future in MVC.Net. Thanks
Ajaz
I am new to ASP.Net MVC.I need to learn ASP.Net MVC .I need an Online training course for that.Kindly suggest a good online training website for ASP.Net MVC
Hi Shubhatra.. Many materials are available online for ASP.NET MVC course. You can find many tutorials videos. Try to make small projects using those tutorials,not just read or watch them. Remember best...
Shubhabrata
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

C# (Sharp) Syllabus
C# (Sharp) Syllabus: C# (Sharp) Syllabus Lesson 01: Getting Started Lesson 02: Expressions, Types, and Variables Lesson 03: Control Statements - Selection Lesson 04: Control...

ValidateAntiForgeryToken used in ajax request in MVC
Today we learn how to use antiforgery token validation Key in ajax reqeust (MVC) first we create a Action with attributes antiforgery key.. Now we add @Html.AntiForgeryToken() in view and then create...

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...

Dependency Injection in Angular 2
Dependency injection Dependency injection is a way to supply a new instance of a class with the fully-formed dependencies it requires. Most dependencies are services. Angular uses dependency injection...

Format Date to “MM/dd/yyyy” in Webgrid ASP.Net MVC Razor View
Replace above line with below to apply ("DD/mm/yyyy") formatting to date field in WebGrid AllTicket.Column(columnName: "DueDate", header: "Due Date") grid.Column("Date",format:@<text> @item.Date.ToString("MM/dd/yyyy")</text>)
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