public ActionResult Create(AccountViewModel vm)
        {
            if (!ModelState.IsValid)
            {
                return View(vm);
            }

            CommandStackWorkerService.AddAccount(vm);
            return RedirectToAction("Details", new { id = vm.CustomerId });
        }
 public static void AddAccount(AccountViewModel vm)
 {
     IoCServiceLocator.Bus.Send(
         new AddAccountCommand(
             Guid.NewGuid(),
             0,
             vm.CustomerId,
             vm.Currency,
             State.Open));
 }