Get Records count of specified date-range from database, if no record present for one of the date then return count as '0' C# : I want List (containing count and date) of record from database for specifies date-range

if for some date, records are not available in database then that date should be in list with count = 0

    public JsonResult GetApplicationUsage(DateTime startDate, DateTime endDate)
    {
        var AppUsageGraph = appUsageLogRepository.GetDateWiseUsageAsync(startDate.Date, endDate.Date);
        return Json(AppUsageGraph);
    }

