标签:etc res rect tca summary 跳转 return efault router
/// <summary> /// 添加到购物车 /// </summary> /// <param name="id"></param> /// <param name="returnUrl"></param> /// <returns></returns> public RedirectToRouteResult AddToCart(int id, string returnUrl) { var book = _bookRepository.Books.FirstOrDefault(x => x.Id == id); if (book != null) { GetCart().AddBook(book, 1); } return RedirectToAction("Index", new { returnUrl }); }
标签:etc res rect tca summary 跳转 return efault router
原文地址:http://www.cnblogs.com/liujun1769/p/6663754.html