protected void btnReject_Click(object sender, EventArgs e) { try { if (Request.QueryString["type"].ToString() == "0") { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBCommon.BGetExamProviderDetails(objBECommon); if (objBECommon.DsResult.Tables[0].Rows.Count > 0) { // objBECommon.StrEmailID = objBECommon.DsResult.Tables[0].Rows[0]["StudentEmail"].ToString(); objBECommon.IntUserID = Convert.ToInt32(objBECommon.DsResult.Tables[0].Rows[0]["UserID"]); objBECommon.IntProviderID = Convert.ToInt32(objBECommon.DsResult.Tables[0].Rows[0]["ProviderUserID"]); // objBECommon.strProviderEmailID = objBECommon.DsResult.Tables[0].Rows[0]["ExamProviderEmail"].ToString(); } Approve_Transaction(0); try { //EmailMsg obj = new EmailMsg(); //obj.ExamApprovedStudent(Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())), "Rejected"); //obj.ExamApprovedProvider(Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())), "Rejected"); //obj = null; BEMail objBEMail = new BEMail(); BMail objBMail = new BMail(); objBEMail.IntTransID = objBECommon.IntTransID; string FYI = "FYI"; string mail = "Mail"; if (mail == "Mail") { //objBEMail.IntUserID = objBECommon.IntUserID; //objBEMail.StrTemplateName = BaseClass.EnumEmails.ExamRejectedbyAuditor.ToString(); //objBMail.BSendEmail(objBEMail); } if (FYI == "FYI") { //objBEMail.IntUserID = objBECommon.IntProviderID; //objBEMail.StrTemplateName = BaseClass.EnumEmails.ExamRejectedbyAuditorFYI.ToString(); //objBMail.BSendEmail(objBEMail); } } catch (Exception ex) { throw ex; } } } catch (Exception ex) { throw ex; } }