private void SearchRecordsAndUpdateView(TicketSearchInfoViewModel <Business.SeachTickets_Result> searchInfo)
 {
     if (searchInfo.SearchParameters == null)
     {
         searchInfo.SearchParameters = new TicketSearchParams()
         {
             RecordsPerPage   = 50,
             PagingStartIndex = 1
         };
     }
     searchInfo.SearchResults = ticketService.SeachTickets(searchInfo.SearchParameters);
     AddViewData(searchInfo);
 }
        public ActionResult Index()
        {
            var searchInfo = new TicketSearchInfoViewModel <Business.SeachTickets_Result>();

            if (searchInfo.SearchParameters == null)
            {
                searchInfo.SearchParameters = new TicketSearchParams()
                {
                    RecordsPerPage   = 50,
                    PagingStartIndex = 1
                };
            }
            AddViewData(searchInfo);
            searchInfo.SearchResults = ticketService.SeachTickets(searchInfo.SearchParameters);
            return(View(searchInfo));
        }
 public ActionResult Index(TicketSearchInfoViewModel <Business.SeachTickets_Result> searchInfo)
 {
     SearchRecordsAndUpdateView(searchInfo);
     return(View(searchInfo));
 }