protected void btnDelete_Click(object sender, EventArgs e) { try { if (Item == null) { throw new Exception("Holiday event is empty"); } _dataService.DeleteHoliday(this.HolidayId.Value); //_dataService.DeleteHoliday(Item); Utils.GoBackOnSuccess(this.Page, this.Context); } catch (Exception ex) { ErrorHolder.Controls.Add(new Label { Text = ex.ToReadbleSrting("Deleting Error"), ForeColor = System.Drawing.Color.Red }); } }