C# Class PhotoSharingApp.Universal.ContractModelConverterExtensions.CategoryPreviewConverter

Helper class to convert between CategoryPreview and CategoryPreviewContract classes.
Mostrar archivo Open project: Microsoft/Appsample-Photosharing

Public Methods

Method Description
ToDataContract ( this category ) : CategoryPreviewContract

Converts the given category preview data model to a contract.

ToDataModel ( this categoryPreviewContract ) : CategoryPreview

Converts the given category preview contract to the category preview data model.

Method Details

ToDataContract() public static method

Converts the given category preview data model to a contract.
public static ToDataContract ( this category ) : CategoryPreviewContract
category this The category preview data model.
return PhotoSharingApp.Portable.DataContracts.CategoryPreviewContract

ToDataModel() public static method

Converts the given category preview contract to the category preview data model.
public static ToDataModel ( this categoryPreviewContract ) : CategoryPreview
categoryPreviewContract this The category preview data contract.
return PhotoSharingApp.Universal.Models.CategoryPreview