Exemplo n.º 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;
        }
Exemplo n.º 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;
        }