Beispiel #1
0
 public static ModSelection ToEntity(this ModSelectionItem item)
 {
     return(new ModSelection()
     {
         Id = item.Id,
         ModName = item.ModName,
         IsChecked = item.IsChecked,
     });
 }
Beispiel #2
0
        public static ModSelectionItem ToItem(this ModSelection entity)
        {
            var item = new ModSelectionItem()
            {
                Id        = entity.Id,
                ModName   = entity.ModName,
                IsChecked = entity.IsChecked,
                IsDirty   = false
            };


            return(item);
        }