public static StartupPreset ToEntity(this StartupPresetItem item) { return(new StartupPreset() { Id = item.Id, Name = item.Name, StartupFileContent = item.StartupFileContent, }); }
public static StartupPresetItem ToItem(this StartupPreset entity) { var item = new StartupPresetItem() { Id = entity.Id, Name = entity.Name, StartupFileContent = entity.StartupFileContent, IsDirty = false }; return(item); }