// Taxes public bool TaxSchedulesDestroy(long scheduleId) { try { List <Tax> taxes = Taxes.FindByTaxSchedule(context.CurrentStore.Id, scheduleId); foreach (Tax t in taxes) { Taxes.Delete(t.Id); } TaxSchedules.Delete(scheduleId); return(true); } catch { return(false); } }