public IAlbum OpenAlbum() { var fileName = _uiService.OpenFileDialog(); if (string.IsNullOrEmpty(fileName)) { return(null); } var serializedAlbum = File.ReadAllText(fileName); var album = JsonConvert.DeserializeObject <AlbumDto>(serializedAlbum); return(album); }