// GET EDIT FINANCIAL OVERVIEW
        public ViewResult Edit(int clientId)
        {
            var client = _clientsRepository.GetClient(clientId);

            // create view model
            var viewModel = new FinancialOverviewFormViewModel
            {
                ClientID = clientId,
                FinancialOverview = client.FinancialOverview
            };

            return View("Edit", viewModel);
        }
        public ActionResult Edit(FinancialOverviewFormViewModel financialForm)
        {
            var client = _clientsRepository.GetClient(financialForm.ClientID);
            client.FinancialOverview = financialForm.FinancialOverview;

            if (ModelState.IsValid)
            {
                _clientsRepository.SaveClient(client);
                TempData["message"] = "Financial Overview has been saved.";
                return RedirectToAction("List", "LegalFinance", new { financialForm.ClientID });
            }

            // validation error, so redisplay the same view
            return View("Edit", financialForm);
        }