private void DeleteItem(string argShiftId) { log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { if (!string.IsNullOrEmpty(argShiftId)) { AdminBLL ws = new AdminBLL(); DeleteShiftRequest _req = new DeleteShiftRequest(); _req.ShiftNo = argShiftId.ToString(); ws.DeleteShift(_req); HttpContext.Current.Items.Add(ContextKeys.CTX_COMPLETE, "DELETE"); Server.Transfer("PassUpDateComplete.aspx"); } } catch (System.Threading.ThreadAbortException) { } catch (Exception ex) { logger.Info(ex.Message); } }
public void DeleteShift(DeleteShiftRequest argObj) { try { AdminDAL ws = new AdminDAL(); ws.DeleteShiftUser(argObj); } catch (Exception ex) { } }