public JsonResult AddMarketCategory(string name) { Result result = new Result(); try { ILimitTimeBuyService limitTimeBuyService = ServiceHelper.Create <ILimitTimeBuyService>(); limitTimeBuyService.AddServiceCategory(name.Replace(",", "").Replace(",", "")); result.success = true; result.msg = "添加分类成功!"; } catch (HimallException himallException) { result.msg = himallException.Message; } catch (Exception exception) { Log.Error("添加分类出错", exception); result.msg = "添加分类出错!"; } return(Json(result)); }