public void DeletePayment(StatisticTypeEnum deleteType, string deleteID) { switch (deleteType) { case StatisticTypeEnum.ClassFee: _paymentDal.DelClassPayment(deleteID); break; case StatisticTypeEnum.TeacherFee: _paymentDal.DelTeacherFee(deleteID); break; default: _paymentDal.DelAccountInfo(deleteID); break; } GeneralCapitalChanged?.Invoke(null, EventArgs.Empty); }