public ActionResult Index() { var datasModel = new DatasModel(); datasModel.SumOfValues = Repositories.Files.CalculateSumOfAllValues(); datasModel.SumOfYear = new SumAndYearModel(Repositories.FileLines.CalculateSumByDate()); datasModel.SumOfOrigin = new SumAndOriginModel(Repositories.FileLines.CalculateSumByOrigin()); return(View(datasModel)); }