GetViewModelAsync(IPublishService, ContentTypeDefinition, IReadOnlyList<IPublishedValue>, CultureInfo)

public static ValueTask<object> GetViewModelAsync(IPublishService publishService, ContentTypeDefinition definition, IReadOnlyList<IPublishedValue> values, CultureInfo culture)
Returns:
ValueTask<object>

Parameters

publishService IPublishService
values IReadOnlyList<IPublishedValue>
culture CultureInfo

GetViewModelAsync(IPublishService, IPublishedContent)

public static ValueTask<object> GetViewModelAsync(IPublishService publishService, IPublishedContent publishedContent)
Returns:
ValueTask<object>

Parameters

publishService IPublishService
publishedContent IPublishedContent

GetViewModelAsync<TModel>(IPublishService, IPublishedContent)

public static ValueTask<TModel> GetViewModelAsync<TModel>(IPublishService publishService, IPublishedContent publishedContent)
Returns:
ValueTask<TModel>

Parameters

publishService IPublishService
publishedContent IPublishedContent

Type Parameters

TModel
In this article