Ejemplo n.º 1
0
        public ActionResult gettingbookingdetails()          //By this we will get all the booking details that we have inserted so far
        {
            tblLogin c = (tblLogin)Session["customerid"];
            string   s = c.UserId;

            P = Dbclass.gettingallbooking(s);                //here all booking values are brought through this gettingallbooking method
            if (P.Count == 0)
            {
                ViewBag.List = null;
                ViewBag.msg  = "No Booking are there ";
            }
            else
            {
                ViewBag.List = P;
            }


            return(View());
            //return View();
        }