public ActionResult Create(AccountType accounttype) { if (ModelState.IsValid) { accountTypeRepository.InsertOrUpdate(accounttype); accountTypeRepository.Save(); return(RedirectToAction("Index")); } else { return(View()); } }
public ActionResult Create(AccountType accounttype) { if (ModelState.IsValid) { accountTypeRepository.InsertOrUpdate(accounttype); accountTypeRepository.Save(); return(RedirectToAction("Index")); } else { return(View()); } }