示例#1
0
        public static PartakerViewModel ToViewModel(this PartakerEntity entity)
        {
            if (entity == null) throw new ArgumentNullException(nameof(entity));

            var result = new PartakerViewModel();
            result.AssignFrom(entity);
            return result;
        }
示例#2
0
        public static PartakerViewModel ToViewModel(this PartakerEntity entity,bool isShowhighOnly = false, bool isShowLow = true)
        {
            if (entity == null) throw new ArgumentNullException(nameof(entity));

            var result = new PartakerViewModel();
            result.AssignFrom(entity,isShowhighOnly,isShowLow);
            return result;
        }