public ActionResult ExistItemValue(string itemValue, long keyValue, long itemId)
        {
            bool IsOk = _dataItemRules.IsDataItemDetailValueUnique(itemValue, itemId, keyValue);

            return(Content(IsOk.ToString()));
        }
 /// <summary>
 ///  判断唯一值
 /// </summary>
 /// <param name="model">模型数据</param>
 /// <param name="code">值</param>
 /// <returns></returns>
 private bool HaveUniqueValue(DataItemDetailViewModel model, string value)
 {
     return(!_dataItemDetailRules.IsDataItemDetailValueUnique(value, model.ItemId, model.Id));
 }