Пример #1
0
 private VmName CreateVmName(NameTypeEnum descriptionType)
 {
     return(new VmName()
     {
         Name = "name",
         TypeId = descriptionType.ToString().GetGuid()
     });
 }
Пример #2
0
 public static VmName CreateVmNameModel(NameTypeEnum nameType)
 {
     return(new VmName()
     {
         Name = "channelName",
         TypeId = nameType.ToString().GetGuid()
     });
 }
 private VmName CreateName(string language, string value, VmGeneralDescriptionBase vModel, NameTypeEnum typeEnum)
 {
     return(new VmName
     {
         Name = value,
         TypeId = typesCache.Get <NameType>(typeEnum.ToString()),
         OwnerReferenceId = vModel.Id,
         LocalizationId = languageCache.Get(language)
     });
 }
 private IEnumerable <IName> GetName(ServiceChannelVersioned serviceChannelVersioned, NameTypeEnum type)
 {
     return(serviceChannelVersioned.ServiceChannelNames.Where(x => typesCache.Compare <NameType>(x.TypeId, type.ToString())));
 }
Пример #5
0
 private IEnumerable <IName> GetName(OrganizationVersioned organizationVersioned, NameTypeEnum type)
 {
     return(organizationVersioned.OrganizationNames.Where(x => x.TypeId == typesCache.Get <NameType>(type.ToString())));
 }
Пример #6
0
 private ICollection <ServiceName> GetName(ServiceVersioned serviceVersioned, NameTypeEnum type)
 {
     return(serviceVersioned.ServiceNames.Where(x => x.TypeId == typesCache.Get <NameType>(type.ToString())).ToList());
 }
Пример #7
0
 private IEnumerable <IName> GetName(IBaseInformation basicInformation, NameTypeEnum type)
 {
     return(basicInformation.Names.Where(x => typesCache.Compare <NameType>(x.TypeId, type.ToString())));
 }
Пример #8
0
 private ICollection <StatutoryServiceName> GetName(StatutoryServiceGeneralDescriptionVersioned gdVersioned, NameTypeEnum type)
 {
     return(gdVersioned.Names.Where(x => x.TypeId == typesCache.Get <NameType>(type.ToString())).ToList());
 }