After looking at the link below (MVC + WebAPI + SQL), i now finally decide to make a similar page for Schedule.
http://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-rest-service-aspnet-api-sql-database/#bkmk_addcontroller
Business Logic Layer
Views
Model
Controller
Friday, 11 April 2014
Thursday, 10 April 2014
MVC basics
If you create a new ASP.NET MVC 3 web application by visual studio 2010, the initial page will show like below.
Why does it show Views\Home\Index.cshtml by default?
It is defined in global.asax.cs.
If you change the route, initial page will show About View.
This is actually the mistake or misconception I have again and again. I was expecting to see the file Home/About.cshtml when I type in url, localhost/Home/About. No way.
What happen is, the url looks up HomeController.cs and About() function. Because it cannot find the function, it returns 'The resource cannot be found' error.
Just type in About() function as below for testing.
Voila! You are now looking at the view, View\About.cshtml.
RenderBody()
Good diagrams:
Tuesday, 8 April 2014
Web API References
(1) WEB API basic
Project Name: ProductsApp
http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api
(2) ProjectName: ProductStore
http://www.asp.net/web-api/overview/creating-web-apis/creating-a-web-api-that-supports-crud-operations
(3) ProjectName: ContactsManager
<Other links>
Create a REST API with Attribute Routing in Web API 2
Web API POST example
http://forums.asp.net/t/1931201.aspx?Web+API+POST+method+Calling+Not+working+
calling web api from ios
https://www.youtube.com/watch?v=_m9kEI3s3-k
https://www.youtube.com/watch?v=OFeJkGs5bho
https://www.youtube.com/watch?v=0iT1q7U-XeA
web api post call from ios
http://blog.strikeiron.com/bid/63338/Integrate-a-REST-API-into-an-iPhone-App-in-less-than-15-minutes
http://www.raywenderlich.com/2965/how-to-write-an-ios-app-that-uses-a-web-service
<Search google> rest post ios
Project Name: ProductsApp
http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api
(2) ProjectName: ProductStore
http://www.asp.net/web-api/overview/creating-web-apis/creating-a-web-api-that-supports-crud-operations
(3) ProjectName: ContactsManager
Look for sentence:
- Build the project (Ctrl+Shift+B). (You must build the project before using scaffolding mechanism.)
<Other links>
Web API POST example
http://forums.asp.net/t/1931201.aspx?Web+API+POST+method+Calling+Not+working+
calling web api from ios
https://www.youtube.com/watch?v=_m9kEI3s3-k
https://www.youtube.com/watch?v=OFeJkGs5bho
https://www.youtube.com/watch?v=0iT1q7U-XeA
web api post call from ios
http://blog.strikeiron.com/bid/63338/Integrate-a-REST-API-into-an-iPhone-App-in-less-than-15-minutes
http://www.raywenderlich.com/2965/how-to-write-an-ios-app-that-uses-a-web-service
<Search google> rest post ios
Subscribe to:
Posts (Atom)