Пример #1
0
        public View Action(int tripId)
        {
            // Get data from our backend.
            var trip = this.backendService.GetTrip(tripId);

            // Map it to a viewmodel.
            var viewModel = Automapper.MapToViewModel(trip);

            // Return view.
            return(new View(viewModel));
        }