IsNew() public method

public IsNew ( ) : bool
return bool
 public void Save(CiphertextDto ciphertextDto)
 {
     if (ciphertextDto.IsNew())
     {
         ciphertextDto.Id = Guid.NewGuid();
     }
     InternalSave(ciphertextDto);
 }
Example #2
0
 public void Save(CiphertextDto ciphertextDto)
 {
     if (ciphertextDto.IsNew())
     {
         ciphertextDto.Id = Guid.NewGuid();
     }
     InternalSave(ciphertextDto);
 }