public PartialViewResult AddToCartWidget(int id, string returnUrl) { List<BookModel> books = new List<BookModel>(); books = CacheHelper.GetAllBooks("0", "0"); var book = books.Find(b => b.Id == id); if (book != null) { GetCart().AddItem(book, 1); } return PartialView("_CartWidgetView"); }