public ActionResult AddFavorite(int id) { int userID = UserID; if (userID == 0) return Content("��û�е�¼�����ղ�"); bizUserFavorite uf = new bizUserFavorite(); uf.Add(userID, id, 1); return Content(""); }
public ActionResult RemoveFavorite(int id) { string backUrl = Request.QueryString["BackUrl"].ToString(); bizUserFavorite uf = new bizUserFavorite(); uf.Delete(UserID, id, 1); return Redirect(backUrl); }