public JsonResult CreateRelationWithGoodsGroup(int channelGroupId, int[] GoodsGroupIds) { string msg; bool success = bll.CreateRelationWithGoodsGroup(channelGroupId, GoodsGroupIds, out msg); if (success) { return(Json(new { Status = true, Message = msg })); } else { return(Json(new { Status = false, Message = msg })); } }