Exemplo n.º 1
0
        public static Habit Update(Guid habitID, Guid userID, String habit_name, String[] days)
        {
            IGainer logGainer = new LogSuccess();

            if (!checkDays(days))
            {
                return(null);
            }

            Habit h = Habit.UpdateHabit(habitID, userID, habit_name, logGainer);

            h.UpdateDayOff(days);
            return(h);
        }