public ActionResult GetProductQRCode(int id) { Product_Anti_Fake productQRCode = _productQRCodeManager.GetProductQRCode(id); if (productQRCode == null) { return(FailedResult("指定的数据不存在。")); } Product_Anti_FakeDto productDto = Mapper.Map <Product_Anti_FakeDto>(productQRCode); return(DataResult(productDto)); }
public ActionResult UpdateProductQRCode() { Product_Anti_FakeDto args = RequestArgs <Product_Anti_FakeDto>(); if (args == null) { return(FailedResult("参数无效。")); } Product_Anti_Fake productQRCode = Mapper.Map <Product_Anti_Fake>(args); NormalResult result = _productQRCodeManager.UpdateProductQRCode(productQRCode); return(ApiResult(result.Successful, result.Message)); }