DateTime dtEnd = DateTime.Now; var dtStart = dtEnd.AddDays(-7); return await _allResoursesRepository.GetAll().Where(x => x.CreationTime >= dtStart && x.CreationTime <= dtEnd).CountAsync();