public ActionResult <Habit> Log(Guid user_id, Guid id)
        {
            Habit h = HabitRepository.GetHabitByID(id, user_id);

            h.LogIn(DateTime.Now);

            return(Ok(h));
        }
        public ActionResult <Habit> Get(Guid user_id, Guid id)
        {
            Habit h = HabitRepository.GetHabitByID(id, user_id);

            if (h != null)
            {
                return(Ok(h));
            }
            return(NotFound("habit not found"));
        }
        public ActionResult <Habit> UpdateHabit(Guid user_id, Guid id, [FromBody] RequestData data)
        {
            Habit h = HabitRepository.GetHabitByID(id, user_id);

            if (h != null)
            {
                DaysOff daysoff = new DaysOff(data.DaysOff);
                HabitRepository.UpdateHabitData(id, user_id, data.Name, daysoff);
                return(Ok(h));
            }
            return(NotFound("habit not found"));
        }