public ActionResult Subscription(AccountType at) { if (AccountTypeRepo.GetAll().Find(a => a.AccountTypeName == at.AccountTypeName) == null) { AccountTypeRepo.Insert(at); } return(RedirectToAction("Subscription")); }
public ActionResult Subscription(AccountType at) { if (AccountTypeRepo.GetAll().Find(a => a.AccountTypeName == at.AccountTypeName) == null) { AccountTypeRepo.Insert(at); } return(RedirectToAction("Subscription")); }