public ActionResult Index(AccountTypeEditViewModel model)
        {
            if (ModelState.IsValid)
            {
                var opo = _mapper.Map <AccountType>(model);
                unitOfWork.cv.Add(opo);
                unitOfWork.Complete();

                return(RedirectToAction("Index", "Customer"));
            }
            return(RedirectToAction("Index", "Customer"));
        }
        public ActionResult Edit(AccountTypeEditViewModel model)
        {
            if (ModelState.IsValid)
            {
                var opo = _mapper.Map <AccountType>(model);
                unitOfWork.cv.update(opo);
                unitOfWork.Complete();

                return(RedirectToAction("ViewAccountType", "AccountType"));
            }

            return(View());
        }