Beispiel #1
0
        public static async Task<AssetBasicViewModel> ToBasicViewModelAsync(this IAsset model)
        {
            if (model == null) return null;

            var viewModel = new AssetBasicViewModel();
            await model.ExtrudeBasicInfo(viewModel);
            return viewModel;
        }
Beispiel #2
0
 private static async Task ExtrudeBasicInfo(this IAsset model, AssetBasicViewModel viewModel)
 {
     viewModel.Id = model.Id;
     viewModel.Url = model.Url;
 }