public ActionResult DeleteConfirmed(int id)
        {
            accountTypeRepository.Delete(id);
            accountTypeRepository.Save();

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        public ActionResult DeleteConfirm(int id)
        {
            accountTypeRepository.Delete(id);
            TempData["Deleted"] = "Account Type Deleted";

            return(RedirectToAction("Index"));
        }
        public bool DeleteType(AccountType account_type)
        {
            if (account_type == null)
            {
                throw new ArgumentNullException(nameof(account_type));
            }

            return(ExecuteFaultHandledOperation(() =>
            {
                var account_type_data = _acct_es.Map(account_type);
                _repo_acct_type.Delete(account_type_data);
                return true;
            }));
        }