//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)); }
public ActionResult UpdateReturn(string RentalID, string VideoID) { CoreCustomer core = new CoreCustomer(); return(Json(core.UpdateRentalReturn(RentalID, VideoID), JsonRequestBehavior.AllowGet)); }
public ActionResult SearchByPhone(string PhoneNumber) { CoreCustomer core = new CoreCustomer(); return(Json(core.SearchByPhone(PhoneNumber), JsonRequestBehavior.AllowGet)); }
//Views all the videos availale public ActionResult ViewVideosCustomer() { CoreCustomer core = new CoreCustomer(); return(Json(core.VideoView(), JsonRequestBehavior.AllowGet)); }