protected void ButtonCancel_Click(object sender, EventArgs e) { Classes.Reviews r = new Classes.Reviews(); r.reviewCancel(Convert.ToInt32(Session["UserId"]), Convert.ToInt64(HiddenFieldReviewRequestId.Value)); Response.Redirect("~/Review"); }
//reviewCancel(int userId, Int64 reviewRequestId) //public int reviewAdd(int userId, Int64 reviewRequestId, string comment, int rate(5)) public bool reviewSend(bool reviewed, int userId, Int64 reviewRequestId, string comment, int rate) { Classes.Reviews reviews = new Classes.Reviews(); if (reviewed) { reviews.reviewAdd(userId, reviewRequestId, comment, rate); } else { reviews.reviewCancel(userId, reviewRequestId); } return(true); }