public void ExecuteDeleteEvent(object sender, CommandEventArgs e) { try { _IVacationFacade.DeleteVacation(Convert.ToInt32(e.CommandArgument)); } catch (ApplicationException ex) { _IVacationBaseListView.Message = ex.Message; } }
public void DeleteEvent(object sender, CommandEventArgs e) { _IVacationFacade.DeleteVacation(Convert.ToInt32(e.CommandArgument)); _ItsView.VacationList = _IVacationFacade.GetVacationByAccountID(_ItsView.Employee.Account.Id); }