Пример #1
0
        public ActionResult formSubmit(CirrusTransaction model, string actionType)
        {
            List <string> errorMessage   = new List <string>();
            string        successMessage = Resources.NotifResource.RequestSuccess;

            KeyValuePair <int, string> results = new KeyValuePair <int, string>(1, "");
            string   CardNo          = Request["CardNo"].Trim();
            DateTime TransactionDate = DateTime.Parse(Request["TransactionDate"].Trim());
            string   SequenceNo      = Request["SequenceNo"].Trim();
            string   RequestID       = Request["RequestID"].Trim();

            db.UpdateHistoryCirrusTransaction(CardNo, TransactionDate, SequenceNo, RequestID);

            UrlHelper u   = new UrlHelper(this.ControllerContext.RequestContext);
            string    url = u.Action("Index", "CirrusController");

            var jsonData = new { flag = true, Message = url };

            return(Json(jsonData));
        }
Пример #2
0
 public ActionResult Update(CirrusTransaction model)
 {
     return(formSubmit(model, "Update"));
 }