public async Task <IResultModel> Delete(Guid id) { if (await _propertyRepository.ExistsByEnum(id)) { return(ResultModel.Failed("有数据关联了该枚举,无法删除")); } var result = await _repository.DeleteAsync(id); return(ResultModel.Result(result)); }
public async Task <IResultModel> Delete(Guid id) { if (await _propertyRepository.ExistsByEnum(id)) { return(ResultModel.Failed("有数据关联了该枚举,无法删除")); } var result = await _repository.DeleteAsync(id); return(ResultModel.Result(result)); }