Пример #1
0
 private SystemRelationDTO PrepareEditedRelation(SystemRelationDTO created, NamedEntityWithEnabledStatusDTO usage, NamedEntityDTO contract, NamedEntityDTO frequency, NamedEntityDTO interfaceType)
 {
     return(new SystemRelationDTO(
                created.Id,
                created.Uuid,
                created.FromUsage,
                usage,
                interfaceType,
                contract,     // contract
                frequency,    // frquencytype
                A <string>(), // description
                A <string>()  // reference
                ));
 }
Пример #2
0
 public SystemRelationDTO(
     int id,
     Guid uuid,
     NamedEntityWithEnabledStatusDTO fromUsage,
     NamedEntityWithEnabledStatusDTO toUsage,
     NamedEntityDTO @interface,
     NamedEntityDTO contract,
     NamedEntityDTO frequencyType,
     string description,
     string reference)
 {
     Id            = id;
     Uuid          = uuid;
     FromUsage     = fromUsage;
     ToUsage       = toUsage;
     Interface     = @interface;
     Contract      = contract;
     FrequencyType = frequencyType;
     Description   = description;
     Reference     = reference;
 }