public void AddPostEntry() { var postEntry = new PostEntry { FirstName = "Maxym", LastName = "Goliak", ContainerID = "F**K'N CONTAINER", DateOfDischarge = DateTime.Now, DateOfReport = DateTime.Now, DateUplifted = DateTime.Now, Balance = 100, TSDocId = 1 }; provider.PostEntries.AddNew(postEntry); Items.Add(new PostEntryVM(postEntry)); }
public PostEntryVM(PostEntry pe) { this.entry = pe; }