public ActionResult <ProductDTO> AddAttr(string detailId, ProductDTO ProductAttrDTO) { if (DataHelper.IsEmptyString(detailId) || !ModelState.IsValid) { return(BadRequest()); } // var re = _productModel.AddAttrDTOs(detailId, ProductAttrDTO); if (re == null) { return(Problem(statusCode: 500, detail: "Can't add data")); } _cache.DataUpdated(CacheKey.PRODUCT); return(re); }