Ejemplo n.º 1
0
        // GET: ListRents
        public ActionResult ListRents(string Button)
        {
            DatabaseRequests request = new DatabaseRequests();
            DataTable        dt      = new DataTable();

            if (Button.Equals("All"))
            {
                dt = request.GetRentsList("all");
            }
            else if (Button.Equals("Active"))
            {
                dt = request.GetRentsList("active");
            }
            else if (Button.Equals("Inactive"))
            {
                dt = request.GetRentsList("inactive");
            }
            else if (Button.Equals("Deleted"))
            {
                dt = request.GetRentsList("deleted");
            }
            else
            {
                return(View("Menu"));
            }

            return(View(dt));
        }
Ejemplo n.º 2
0
        public ActionResult ListRents()
        {
            DatabaseRequests request = new DatabaseRequests();

            DataTable dt = request.GetRentsList("all");

            return(View(dt));
        }