public JsonResult DeleteCode(string CodeID) { String res = ""; try { var couponService = new StripeCouponService(); StripeHelper.DeleteCoupon(CodeID); res = adata.DeleteCouponData(CodeID); } catch (Exception ex) { res = ex.Message; } return(new JsonResult { Data = res, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }