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)); }
public ActionResult Update(CirrusTransaction model) { return(formSubmit(model, "Update")); }