コード例 #1
0
        //Take all the Rental information to the database
        public ActionResult VideoRental(List <string> VideoID, string CustomerName, string CustomerPhone, List <string> Title)
        {
            CoreCustomer core     = new CoreCustomer();
            string       videoIDs = string.Join(",", VideoID);
            string       title    = string.Join(",", Title);

            return(Json(core.InsertRental(videoIDs, CustomerName, CustomerPhone, title), JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public ActionResult UpdateReturn(string RentalID, string VideoID)
        {
            CoreCustomer core = new CoreCustomer();

            return(Json(core.UpdateRentalReturn(RentalID, VideoID), JsonRequestBehavior.AllowGet));
        }
コード例 #3
0
        public ActionResult SearchByPhone(string PhoneNumber)
        {
            CoreCustomer core = new CoreCustomer();

            return(Json(core.SearchByPhone(PhoneNumber), JsonRequestBehavior.AllowGet));
        }
コード例 #4
0
        //Views all the videos availale
        public ActionResult ViewVideosCustomer()
        {
            CoreCustomer core = new CoreCustomer();

            return(Json(core.VideoView(), JsonRequestBehavior.AllowGet));
        }