public ActionResult TourCMS() { GetAllTourDetailsResponse response = applicationTourService.FindAll(new GetAllTourDetailsRequest() { }); return(View("TourCMS", response.ApplicationTours)); }
public GetAllTourDetailsResponse FindAll(GetAllTourDetailsRequest request) { GetAllTourDetailsResponse response = new GetAllTourDetailsResponse(); if (request != null) { var tourDetails = applicationTourRepo.FindAll(); if (tourDetails != null && tourDetails.Any()) { response.ApplicationTours = MapDomainToVM(tourDetails); } } return(response); }