Example #1
0
        public ActionResult Privew(int?TransactionId)
        {
            LedgerBLL objLedgerBLL = new LedgerBLL();

            if (TransactionId > 0)
            {
                var data = objLedgerBLL.GetPrevieByTransactionId(TransactionId);
                ViewBag.data          = data;
                ViewBag.TransactionId = TransactionId;
            }
            else
            {
                TempData["msg"] = "<script>alert('No data Found');</script>";
                return(Redirect("Save"));
            }
            return(View());
        }
        public ActionResult Privew(string TransactionId)
        {
            LedgerBLL objLedgerBLL = new LedgerBLL();
            var       a            = Convert.ToString(TransactionId);
            //if (a==null)
            //{
            //    TempData["msg"] = "<script>alert('No data Found');</script>";
            //    return Redirect("Save");
            //}
            //else
            //{
            var data = objLedgerBLL.GetPrevieByTransactionId(TransactionId);

            ViewBag.data          = data;
            ViewBag.TransactionId = TransactionId;

            //}
            return(View());
        }