public ActionResult Create()
        {
            var ActiveAction     = RouteData.Values["action"].ToString();
            var ActiveController = RouteData.Values["controller"].ToString();

            Session["ActiveAction"]     = ActiveController;
            Session["ActiveController"] = ActiveAction;

            UtilityClass.ActivityMonitor(Convert.ToInt32(Session["UserID"]), Session.SessionID, Request.UserHostAddress.ToString(), new Guid().ToString(), "", this.RouteData.Values["action"].ToString(), Request.RawUrl.ToString());
            SBP_BlotterRTGS model = new SBP_BlotterRTGS();

            try
            {
                if (ModelState.IsValid)
                {
                    model.RTGS_Date = DateTime.Now.Date;
                    ViewBag.RTGSTransactionTitles = GetAllRTGSTransactionTitles();
                }
                else
                {
                    ViewBag.RTGSTransactionTitles = GetAllRTGSTransactionTitles();
                }
            }
            catch (Exception ex) { }
            return(PartialView("_Create", model));
        }
        public ActionResult _Create(SBP_BlotterRTGS BlotterRTGS, FormCollection form)
        {
            try
            {
                #region Added by shakir (Currency parameter)
                var selectCurrency = (dynamic)null;
                if (form["selectCurrency"] != null)
                {
                    selectCurrency = Convert.ToInt32(form["selectCurrency"].ToString());
                }
                else
                {
                    selectCurrency = Convert.ToInt32(Session["SelectedCurrency"].ToString());
                }

                UtilityClass.GetSelectedCurrecy(selectCurrency);
                #endregion
                if (ModelState.IsValid)
                {
                    BlotterRTGS.RTGS_OutFLow = UC.CheckNegativeValue(BlotterRTGS.RTGS_OutFLow);
                    BlotterRTGS.UserID       = Convert.ToInt16(Session["UserID"].ToString());
                    BlotterRTGS.BID          = Convert.ToInt16(Session["BranchID"].ToString());
                    BlotterRTGS.BR           = Convert.ToInt16(Session["BR"].ToString());
                    BlotterRTGS.CurID        = Convert.ToInt16(Session["SelectedCurrency"].ToString());
                    BlotterRTGS.CreateDate   = DateTime.Now;
                    ServiceRepository   serviceObj = new ServiceRepository();
                    HttpResponseMessage response   = serviceObj.PostResponse("api/BlotterRTGS/InsertRTGS", BlotterRTGS);
                    response.EnsureSuccessStatusCode();
                    UtilityClass.ActivityMonitor(Convert.ToInt32(Session["UserID"]), Session.SessionID, Request.UserHostAddress.ToString(), new Guid().ToString(), JsonConvert.SerializeObject(BlotterRTGS), this.RouteData.Values["action"].ToString(), Request.RawUrl.ToString());
                    return(RedirectToAction("BlotterRTGS"));
                }
                else
                {
                    ViewBag.RTGSTransactionTitles = GetAllRTGSTransactionTitles();
                }
            }
            catch (Exception ex) { }
            return(PartialView("_Create", BlotterRTGS));
        }