/// <summary> /// HM# 页面删除图像 /// 2013年12月25日10:56:35 /// </summary> /// <param name="mediaId"></param> /// <returns></returns> public ActionResult DeleteCmsMedia(long mediaId) { try { var cSvr = new HMCommonServices(); string errMsg; if (!cSvr.DeleteCMSMedia(mediaId, out errMsg)) { return(Json(new NBCMSResultJson { Status = StatusType.Error, Data = errMsg == string.Empty ? "Fail to delete this media" : errMsg })); } return(Json(new NBCMSResultJson { Status = StatusType.OK, Data = "OK" })); } catch (Exception ex) { NBCMSLoggerManager.Error(""); NBCMSLoggerManager.Error(ex.Message); NBCMSLoggerManager.Error(ex.StackTrace); NBCMSLoggerManager.Error(""); return(Json(new NBCMSResultJson { Status = StatusType.Exception, Data = ex.Message })); } }
/// <summary> /// 获取、组装WePO eCom 图像信息(根据HM#来查询) /// CreateDate:2013年12月25日14:51:04 /// </summary> /// <param name="HMNUM"></param> /// <returns></returns> public ActionResult GetImagesFromOtherSystem(string HMNUM) { try { var cSvr = new HMCommonServices(); return(Json(new NBCMSResultJson { Status = StatusType.OK, Data = cSvr.GetImagesFromOtherSystem(HMNUM) })); } catch (Exception ex) { NBCMSLoggerManager.Error(""); NBCMSLoggerManager.Error(ex.Message); NBCMSLoggerManager.Error(ex.StackTrace); NBCMSLoggerManager.Error(""); return(Json(new NBCMSResultJson { Status = StatusType.Exception, Data = ex.Message })); } }