Completing the Web API service
In Chapter 3, Service Layer with ASP.NET Web API, we created a repository class called MovieRepository.cs
with hardcoded data for a list of movies and theaters. We will use the same data here in this chapter to build the new views in our sample application.
Note
The full source code of both the Web API service and Kendo UI mobile is provided with the book at Packt Publishing's website. If you are not from a .NET background or not interested in creating the service layer, feel free to use the service hosted in this URL to connect to your frontend:
http://api.kendomobilebook.com/api/
For example, to get a list of Now Playing movies, the URL will be:
http://api.kendomobilebook.com/api/Movies/GetMovieList?listtype=0
The completed mobile application can be accessed online here:
Movie list
Open the MovieTicketsBLL.cs
file and add the following static
method to the MovieTicketsBLL
class:
public static List<MovieBO> GetMovieList...