public JsonResult Create(HtmlItemDto JSDto) { HttpFileCollectionBase listFile = Request.Files; //获取配置文件下JS的保存路径 string jsPath = ConfigurationHelper.GetAppSetting("JSPath"); List <OperationResult> listOper = _htmlItemContract.Insert(listFile, JSDto, HtmlItemFlag.Js, jsPath); return(Json(listOper)); }
public JsonResult Create(HtmlItemDto dto) { HttpFileCollectionBase listFile = Request.Files; //获取配置文件下的保存路径 string path = ConfigurationHelper.GetAppSetting("ImagePath"); var res = _htmlItemContract.Insert(listFile, dto, HtmlItemFlag.Image, path); return(Json(res)); }