// GET CREATE ATTORNEY
        public ViewResult Create(int ClientID)
        {
            // create view model
            var viewModel = new AttorneyFormViewModel
            {
                clientId = ClientID
            };

            return View("Edit", viewModel);
        }
        public ActionResult Edit(AttorneyFormViewModel attorneyForm)
        {
            var attorney = Mapper.Map<AttorneyFormViewModel, Attorney>(attorneyForm);

            if (ModelState.IsValid)
            {
                clientsRepository.SaveAttorney(attorney);
                TempData["message"] = "Attorney: " + attorney.FirstName + " " + attorney.LastName + " has been saved.";
                return RedirectToAction("List", "LegalFinance", new { attorney.ClientId });
            }
            else // validation error, so redisplay the same view
            {
                return View("Edit", attorneyForm);
            }
        }