private TImageStatistic CreateInitialStatistic() { var newStat = new TImageStatistic { TotalNumberOfImages = _imageRepository.AmounthOfItems(), NumberOfOptimizedImages = _imageRepository.AmounthOfOptimizedItems(), TotalSavedBytes = 0 }; _statisticRepository.Create(newStat); return(newStat); }