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