public ActionResult SearchRentalId(string searchrentalid) { var _r = new RentalBusiness(); var search = from c in _r.GetAllRentals() select c; search = search.Where(d => d.RentalId.Equals(searchrentalid)); return(View(search)); }
public ActionResult SearchRentalId() { var _r = new RentalBusiness(); return(View(_r.GetAllRentals())); }
public ActionResult Index() { return(View(_Rental.GetAllRentals())); }