private VmName CreateVmName(NameTypeEnum descriptionType) { return(new VmName() { Name = "name", TypeId = descriptionType.ToString().GetGuid() }); }
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()))); }
private IEnumerable <IName> GetName(OrganizationVersioned organizationVersioned, NameTypeEnum type) { return(organizationVersioned.OrganizationNames.Where(x => x.TypeId == typesCache.Get <NameType>(type.ToString()))); }
private ICollection <ServiceName> GetName(ServiceVersioned serviceVersioned, NameTypeEnum type) { return(serviceVersioned.ServiceNames.Where(x => x.TypeId == typesCache.Get <NameType>(type.ToString())).ToList()); }
private IEnumerable <IName> GetName(IBaseInformation basicInformation, NameTypeEnum type) { return(basicInformation.Names.Where(x => typesCache.Compare <NameType>(x.TypeId, type.ToString()))); }
private ICollection <StatutoryServiceName> GetName(StatutoryServiceGeneralDescriptionVersioned gdVersioned, NameTypeEnum type) { return(gdVersioned.Names.Where(x => x.TypeId == typesCache.Get <NameType>(type.ToString())).ToList()); }