public MainPageViewModel() { for (int i = 0; i < 100; i++) { var item = new Model.TodoItem() { Title = string.Format("Task title {0}", i) }; this.Items.Add(item); } }
private static TodoItem CreateDomainModel(Model.TodoItem x) { if (x == null) { return(null); } return(new TodoItem { Id = x.Id, Description = x.Description, Title = x.Title, IsDone = x.IsDone }); }