You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PocketBook/Sources/VMWrapper/BookViewModel.cs

32 lines
708 B

using Model;
using System;
using System.Collections.ObjectModel;
using System.Xml.Linq;
namespace VMWrapper
{
// All the code in this file is included in all platforms.
public class BookViewModel
{
ILibraryManager data;
ObservableCollection<Author> authorList;
public BookViewModel(ILibraryManager data)
{
this.data = data;
}
public async Task<ObservableCollection<Author>> GetAuthor()
{
var objet = await data.GetAuthorsByName("",0,10);
var ojb = objet.Item2;
return new ObservableCollection<Author>(ojb);
}
}
}