public static void Delete(int id) { DatabaseDao.Delete(ConstantValue.GoalOfDay, new List <string> { "ID" }, new List <object> { id }); }
public static void Delete(int id) { var resGoalOfDays = GoalOfDayDao.GetGoalOfDaysWithIDMonth(id); resGoalOfDays.ForEach(x => GoalOfDayDao.Delete(x.ID)); DatabaseDao.Delete(ConstantValue.GoalOfMonth, new List <string> { "ID" }, new List <object> { id }); }