Last post Mar 23, 2017 11:08 AM by mamoni.kol2017
Mar 23, 2017 09:22 AM|mamoni.kol2017|LINK
i heard that now we can do http service based apps using mvc so from now on we do not need web api template in asp.net core. is it true?
if it is true.....web api was service and has no UI but mvc app is UI architecture. so how one can develop service which will have no UI with asp.net mvc core.
please some one discuss this issue. thanks
Mar 23, 2017 09:55 AM|GreenBee|LINK
There is a template for Web API for ASP.NET Core in VS 2017. So no problem with it
Mar 23, 2017 09:57 AM|raju dasa|LINK
i heard that now we can do http service based apps using mvc
There is always been possible with MVC, not only now.
so from now on we do not need web api template in asp.net core. is it true?
VS is providing a template, check this site:
but mvc app is UI architecture.
Yes. but you can also send Json, xml, string, html not only ViewResult. Provides both Service and UI.
Mar 23, 2017 10:08 AM|PatriceSc|LINK
to see how it works.
What you saw is that previously you had separate Controller and ApiController classes that are now "merged" into a single Controller class.
Edit: and even AsyncController is "merged" into this Controller class.
Mar 23, 2017 11:08 AM|mamoni.kol2017|LINK
i got this link https://stackify.com/asp-net-core-web-api-guide/ it is saying
i need to see a coding example where web api and mvc is merged in same project. can u plzz provide a link.