|
|
|
@ -34,6 +34,7 @@ namespace Shentun.Peis.Diagnosises |
|
|
|
Diagnosis entity |
|
|
|
) |
|
|
|
{ |
|
|
|
Verify(entity); |
|
|
|
DataHelper.CheckStringIsNull(entity.DisplayName, "名称"); |
|
|
|
await EntityHelper.CheckSameName<Diagnosis, Guid>(_repository, entity.DisplayName); |
|
|
|
return new Diagnosis |
|
|
|
@ -63,6 +64,7 @@ namespace Shentun.Peis.Diagnosises |
|
|
|
) |
|
|
|
{ |
|
|
|
DataHelper.CheckStringIsNull(sourceEntity.DisplayName, "名称"); |
|
|
|
Verify(sourceEntity); |
|
|
|
if (sourceEntity.DisplayName != targetEntity.DisplayName) |
|
|
|
{ |
|
|
|
|
|
|
|
|