//
        // GET: /Dashboard/
        public ActionResult Index()
        {
            var employeeSituation = _dataService.Fetch<EmployeeSituation>(Configuration.CurrentEmployeeId);

            var pmCriteria = new VacationRequestSearchCriteria
            {
                GetMine = true,
                EmployeeId = Configuration.CurrentEmployeeId,
                States = new[] { VacationRequestState.Submitted },
            };
            _pmRequests = _dataService.FetchList<VacationRequestInfoList, VacationRequest>(pmCriteria);

            var hrCriteria = new VacationRequestSearchCriteria
            {
                GetMine = true,
                States = new[] { VacationRequestState.Approved },
            };
            _hrRequests = _dataService.FetchList<VacationRequestInfoList, VacationRequest>(hrCriteria);

            var model = new Dashboard
            {
                EmployeeStatistics = employeeSituation,
                PmRequests = _pmRequests,
                HrRequests = _hrRequests,
            };

            return View(model);
        }
        public ActionResult Details(VacationRequest request, string returnUrl)
        {
            request.EmployeeId = Configuration.CurrentEmployeeId;

            _dataService.Update(request);

            _requests = LoadModel();

            return Redirect(returnUrl);
        }
        //
        // GET: /Requests/
        public ActionResult Index()
        {
            _requests = LoadModel();

            return View(_requests);
        }