Esempio n. 1
0
        public static async Task<MessageBasicViewModel> ToBasicViewModelAsync(this IMessage model)
        {
            if (model == null) return null;

            var viewModel = new MessageBasicViewModel();
            await model.ExtrudeBasicInfo(viewModel);
            return viewModel;
        }
Esempio n. 2
0
 private static async Task ExtrudeBasicInfo(this IMessage model, MessageBasicViewModel viewModel)
 {
     viewModel.Id = model.Id;
 }