public JsonResult SaveChanges(List <TourCodePrice> list)
        {
            var rep = new TourCodePricesRepository();

            rep.UpdateList(list);
            return(Json(true));
        }
 public ActionResult Index()
 {
     if (userType == 1)
     {
         var rep = new TourCodePricesRepository();
         return(View(rep.GetList()));
     }
     else
     {
         return(RedirectToAction("AddBookingB", "Booking"));
     }
 }
        public ActionResult GetTourPrice(int TourCodeID)
        {
            var rep = new TourCodePricesRepository();

            return(Json(rep.Get(TourCodeID), JsonRequestBehavior.AllowGet));
        }