Exemplo n.º 1
0
        //
        // GET: /Ticket/

        public ActionResult Index(int?page)
        {
            int pageNumber = (page ?? 1);
            var ticket     = TicketBusiness.Search(String.Empty);

            return(View(ticket.ToPagedList(pageNumber, 3)));
        }
Exemplo n.º 2
0
        public ActionResult ListTicket(int?page)
        {
            var ticket     = TicketBusiness.Search(String.Empty);
            int pageNumber = (page ?? 1);

            return(PartialView("ListTicket", ticket.ToPagedList(pageNumber, 3)));
        }
Exemplo n.º 3
0
        public ActionResult Delete(Int64 id, int?page)
        {
            TicketBusiness.Delete(id);
            int pageNumber = (page ?? 1);
            var ticket     = TicketBusiness.Search(String.Empty);

            return(PartialView("ListTicket", ticket.ToPagedList(pageNumber, 3)));
        }
Exemplo n.º 4
0
        public ActionResult Search(String sContent, string currentFilter, int?page)
        {
            if (Request.HttpMethod == "GET")
            {
                sContent = currentFilter;
            }
            else
            {
                page = 1;
            }
            ViewBag.CurrentFilter = sContent;
            int pageSize   = 3;
            int pageNumber = (page ?? 1);
            var ticket     = TicketBusiness.Search(sContent);

            return(PartialView("ListTicket", ticket.ToPagedList(pageNumber, pageSize)));
        }