Esempio n. 1
0
        public static async Task<Message> ToBusinessModelAsync(this MessageEntity model)
        {
            if (model == null) return null;

            var businessModel = new Message();
            await model.ExtrudeDetailInfo(businessModel);
            return businessModel;
        }
Esempio n. 2
0
 private async static Task ExtrudeDetailInfo(this MessageEntity model, Message businessModel)
 {
     businessModel.Id = Guid.Parse(model.RowKey);
     businessModel.Content = model.Content;
 }