Ejemplo n.º 1
0
        public ActionResult Create([Bind(Include = "Type")] AccountType accountType)
        {
            if (ModelState.IsValid)
            {
                AccountTypeRepository.Add(accountType);
                return(RedirectToAction("Index"));
            }

            return(View(accountType));
        }