public ActionResult Create(TransactionCrypto collection) { try { // TODO: Add insert logic here collection.NewTransaction.Insert(); return(RedirectToAction("Index")); } catch { return(View()); } }
// GET: CTransaction/Create public ActionResult Create() { if (Session["user"] != null) { CCryptoList sl = new CCryptoList(); sl.Load(); TransactionCrypto ts = new TransactionCrypto(); ts.NewCrypto = sl; ts.NewTransaction = new CCryptoTran(); return(View(ts)); } return(RedirectToAction("Login", "Login")); }