public ActionResult Activate(Guid clientId)
        {
            Client initializedClient;

            using (var transactionScope = new TransactionScope())
            {
                initializedClient = _clientRepository.GetById(clientId);
                transactionScope.Complete();
            }

            var employees = _employeeService.GetCurrentByDepartmentId(Constants.ClientServicesDepartmentId);

            var viewModel = new ActivateClientViewModel
            {
                Id          = initializedClient.Id.Value,
                Name        = initializedClient.Name,
                Address1    = initializedClient.Address1,
                Address2    = initializedClient.Address2,
                Address3    = initializedClient.Address3,
                PhoneNumber = initializedClient.PhoneNumber,
                Employees   = new SelectList(employees, "Id", "FullName")
            };

            return(View(viewModel));
        }
        public void ActivateAsync(ActivateClientViewModel viewModel)
        {
            var command = new ActivateClient
            {
                Id               = viewModel.Id,
                Name             = viewModel.Name,
                Reference        = viewModel.Reference,
                Address1         = viewModel.Address1,
                Address2         = viewModel.Address2,
                Address3         = viewModel.Address3,
                PhoneNumber      = viewModel.PhoneNumber,
                LiasonEmployeeId = viewModel.LiasonEmployeeId
            };

            _bus.Send(command).Register <ReturnCode>(status =>
            {
                AsyncManager.Parameters["returnCode"] = status;
            });
        }