public async Task <IActionResult> TotalCheckInToday(int locationId, int accountId) { try { var result = await _checkInRepository.GetTotalCheckInTodayCount(locationId, accountId); TotalsPercentDto response = new TotalsPercentDto { isIncrease = result.Item3, TodayTotals = result.Item1, PercentIncrease = result.Item2 }; return(Ok(response)); } catch (Exception ex) { return(BadRequest()); } }