public HabitResponse GetRequiredDataFromLogs(Guid HabitId) { Int32 CurrentStreak = logsService.GetCurrentStreak(HabitId); Int32 LongestStreak = logsService.GetLongestStreak(HabitId); Int32 LogCount = logsService.GetLogCount(HabitId); List <DateTime> Logs = logsService.GetAllLogsTime(HabitId); return(new HabitResponse() { CurrentStreak = CurrentStreak, LongestStreak = LongestStreak, LogCount = LogCount, Logs = Logs }); }