public async Task <JsonResult> GetYummyOnlineLogs(Log.LogProgram?program, DateTime dateTime, int?count) { if (!program.HasValue) { program = Log.LogProgram.TcpServer; } return(Json(new { Program = new { Id = program.Value, Name = program.Value.ToString() }, Logs = await YummyOnlineManager.GetLogs(program.Value, dateTime, count) })); }