protected void btnSave_Click(object sender, EventArgs e) { objReviews = new tblReviews(); objReviews.LoadByPrimaryKey(Convert.ToInt32(hdnPKID.Value)); objReviews.s_AppPublishedBy = Session[appFunctions.Session.UserID.ToString()].ToString(); objReviews.AppPublishedDate = GetDateTime(); objReviews.s_AppReviewStatus = Convert.ToInt32(Enums.Enum_ReviewStatus.Approved).ToString(); objReviews.Save(); LoadDataGrid(true, false); }
private bool Reject(int intPKID) { bool retval = false; objReviews = new tblReviews(); if (objReviews.LoadByPrimaryKey(intPKID)) { if (objReviews.RowCount > 0) { objReviews.s_AppRemark = txtRemark.Text; objReviews.AppReviewStatus = Convert.ToInt32(Enums.Enum_ReviewStatus.Rejected); objReviews.Save(); } objReviews = null; } retval = true; objReviews = null; return(retval); }
private bool Approve(int intPKID) { bool retval = false; objReviews = new tblReviews(); if (objReviews.LoadByPrimaryKey(intPKID)) { if (objReviews.RowCount > 0) { objReviews.s_AppPublishedBy = Session[appFunctions.Session.UserID.ToString()].ToString(); objReviews.AppPublishedDate = GetDateTime(); objReviews.AppRemark = ""; objReviews.AppReviewStatus = Convert.ToInt32(Enums.Enum_ReviewStatus.Approved); objReviews.Save(); } objReviews = null; } retval = true; objReviews = null; return(retval); }