public static void Insert(int idGoalOfMonth, int idDay) { DatabaseDao.Insert(ConstantValue.GoalOfDay, new List <string> { "IDGoalOfMonth", "idDay" }, new List <object> { idGoalOfMonth, idDay }); }
public static void Delete(int id) { DatabaseDao.Delete(ConstantValue.GoalOfDay, new List <string> { "ID" }, new List <object> { id }); }
public static void Update(int id) { DatabaseDao.Update(ConstantValue.Month, id, new List <string> { "LastSelected" }, new List <object> { DateTime.Now }); }
public static void Update(int id) { DatabaseDao.Update(ConstantValue.GoalTime, id, new List <string> { "LastUpdate" }, new List <object> { DateTime.Now }); }
public static void Insert(int idGoal, int idMonth) { DatabaseDao.Insert(ConstantValue.GoalOfMonth, new List <string> { "IDGoal", "IDMonth" }, new List <object> { idGoal, idMonth }); }
public static void Insert(string name) { DatabaseDao.Insert(ConstantValue.Goal, new List <string> { "Name" }, new List <object> { name }); }
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 }); }