public ActionResult Create(TransactionStock 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)
            {
                CStockList sl = new CStockList();
                sl.Load();

                TransactionStock ts = new TransactionStock();
                ts.NewStock       = sl;
                ts.NewTransaction = new CTransaction();

                return(View(ts));
            }
            return(RedirectToAction("Login", "Login"));
        }