public JsonResult BlockCorporateCard() { string currentuser = Session["CurrentUserID"].ToString(); string currentusername = Session["DomainUserName"].ToString(); string cardNo = string.IsNullOrEmpty(Request["_cardNo"]) ? string.Empty : Request["_cardNo"]; string blockType = string.IsNullOrEmpty(Request["_blockType"]) ? string.Empty : Request["_blockType"]; string reasonCode = string.IsNullOrEmpty(Request["_reasonCode"]) ? string.Empty : Request["_reasonCode"]; Params param = new Params() { Parameter = new Dictionary <string, string>() }; param.RequestTransType = "ChangeCorporateCardStatusByCardNo"; param.Parameter.Add("cardNo", cardNo); param.Parameter.Add("blockType", blockType); param.Parameter.Add("reasonCode", reasonCode); param.Parameter.Add("userId", currentusername); string start = DateTime.Now.ToString(); ChangeStatusResult result = StatusUpdate.CorporateCard(param); ChangeStatusUpdatedBy updatedby = new ChangeStatusUpdatedBy { ID = currentuser, Name = currentusername }; result.UpdatedBy = updatedby; if (result.Status == ChangeStatusResultType.Success) { BlockCorporateCardOnCAF(cardNo); } string stop = DateTime.Now.ToString(); ChangeStatusLog.Write(param, result, start, stop); return(Json(result, JsonRequestBehavior.AllowGet)); }