private void DeleteEmail(int emailId) { try { if (EmailAddressManager.Delete(emailId)) { Response.Redirect("ContactInfo.aspx?InstructorId=" + base.InstructorId.ToString()); } else { this.DisplayLocalMessage("Delete of Email failed. Contact Administrator."); } } catch (BLLException ex) { if (ex.BrokenRules != null && ex.BrokenRules.Count() > 0) { this.DisplayLocalMessage(ex.Message, ex.BrokenRules); } else { this.DisplayLocalMessage(ex.Message); } } }
private void DeleteEmail(int emailId) { if (EmailAddressManager.Delete(emailId)) { //notes: redirects back to page refresh list. Response.Redirect("ContactInfo.aspx?InstructorId=" + base.InstructorId.ToString()); } else { //notes: display message to user base.DisplayPageMessage(lblPageMessage, "Delete of email failed. Contact administrator."); } }