public async Task <IActionResult> Create(
            [Bind("AppType,DateCreated,RequestedBy,CustomerAccount,CustomerAddress,CustomerType")]
            AccountMaintenanceViewModel accountMaintenance)
        {
            if (ModelState.IsValid)
            {
                var account = _mapper.Map <Account>(accountMaintenance);
                account.AppDetail = new ApplicationDetail()
                {
                    AppDescription = await _applicationDescriptionService.GetAppDescription("ACM"),
                    DateCreated    = DateTime.Now,
                    RequestedBy    = "PQA4259",
                    AppNumber      = "ACM" + _applicationDetailService.GetAppNumber()
                };
                var cust = await _equationCustomerService.SearchCustomer(accountMaintenance.CustomerAccount);

                account.AppCustomer = _mapper.Map <ApplicationCustomer>(cust);

                _accountService.CreateAccount(account);
                await _unitOfWork.Commit();

                //WorkflowGenerator wfGenerator= new WorkflowGenerator();
                //wfGenerator.CreateAccountMaintenance(new Version(1, 0, 0, 0));

                return(RedirectToAction("Index", "Home"));
            }

            return(View(accountMaintenance));
        }
        // GET: AccountMaintenance/Create
        public IActionResult Create()
        {
            var accMaintenance = new AccountMaintenanceViewModel()
            {
                AppType     = _applicationDescriptionService.GetAppDescription("ACM").Result.AppType,
                DateCreated = DateTime.Now,
                RequestedBy = "PQA4259"
            };

            return(View(accMaintenance));
        }