public MessageResult ExistGoodsName(string goodsName) { bool rsult = goodsBLL.ExistGoodsName(goodsName); if (rsult) { return(MessageResult.Success()); } else { return(MessageResult.Fail()); } }