// GET: Budget
        public ActionResult Index()
        {
            var budgetEntities = new BudgetExpenditure.Models.BudgetExpenditureEntities();
            var context        = budgetEntities.BudgetExpenditures;
            var departments    = budgetEntities.Departments.ToDictionary(m => m.Id, m => m.Name);
            var heads          = budgetEntities.Heads.ToDictionary(m => m.Id, m => m.Name);


            var participants = context.ToList();

            if (participants.Count() > 0)
            {
                participants[0].Departments = departments;
                participants[0].Heads       = heads;
            }

            return(View("ReportPivotBudget", participants));
        }
        public ActionResult GetExpenditureReadOnlyView(HeadEntry head)
        {
            var budgetEntities = new BudgetExpenditure.Models.BudgetExpenditureEntities();
            var context        = budgetEntities.BudgetExpenditures;
            var departments    = budgetEntities.Departments.ToDictionary(m => m.Id, m => m.Name);
            var heads          = budgetEntities.Heads.ToDictionary(m => m.Id, m => m.Name);


            var participants = context.ToList();

            if (participants.Count() > 0)
            {
                participants[0].Quarter     = head.CurrentQuarterName;
                participants[0].Departments = departments;
                participants[0].Heads       = heads;
            }


            return(View("ReportPivotExpenditure", participants));
        }