private void DeleteItem(string argContractorId) { log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { if (!string.IsNullOrEmpty(argContractorId)) { AdminBLL ws = new AdminBLL(); DeleteContractorRequest _req = new DeleteContractorRequest(); _req.ContratorNo = argContractorId.ToString(); ws.DeleteContractor(_req); HttpContext.Current.Items.Add(ContextKeys.CTX_COMPLETE, "DELETE"); Response.Redirect("~/SMSUsers/Reports/ContractorReport.aspx"); } } //catch (System.Threading.ThreadAbortException) //{ //} catch (Exception ex) { logger.Info(ex.Message); } }
public void DeleteContractor(DeleteContractorRequest argObj) { try { AdminDAL ws = new AdminDAL(); ws.DeleteContractorUser(argObj); } catch (Exception ex) { } }
private void DeleteItem(string argEmbossId) { log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { if (!string.IsNullOrEmpty(argEmbossId)) { AdminBLL ws = new AdminBLL(); DeleteContractorRequest _req = new DeleteContractorRequest(); _req.ContratorNo = argEmbossId.ToString(); ws.DeleteContractor(_req); HttpContext.Current.Items.Add(ContextKeys.CTX_COMPLETE, "DELETE"); Server.Transfer("../SMSAdmin/AlertUpdateComplete.aspx"); } } catch (Exception ex) { logger.Info(ex.Message); } }