public static PartakerViewModel ToViewModel(this PartakerEntity entity) { if (entity == null) throw new ArgumentNullException(nameof(entity)); var result = new PartakerViewModel(); result.AssignFrom(entity); return result; }
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; }