public async Task <ActionResult> Index()
        {
            var viewModel   = new ViewModel();
            var performance = new PerformanceStatistics();

            viewModel.CpuUsage = await performance.GetCurrentCpuUsage();

            viewModel.MemoryAvailable = await performance.GetAvailableRAM();

            viewModel.TotalMemory = performance.GetTotalRAM();
            var disk = new DiskStatistics();

            viewModel.FreeArray   = disk.FreeSpace;
            viewModel.TotalArray  = disk.TotalSpace;
            viewModel.UsedArray   = disk.UsedSpace;
            viewModel.MovieNames  = disk.MovieTitles;
            viewModel.TVShowNames = disk.TvShowTitles;
            //viewModel.NumberOfPhotos = disk.NumberOfPhotos;
            return(View(viewModel));
        }
        public async Task <JsonResult> CurrentRamAvailable()
        {
            var performance = new PerformanceStatistics();

            return(Json(await performance.GetAvailableRAM()));
        }