summaryrefslogtreecommitdiff
path: root/src/MVPtoMVVM/presenters/TodoItemPresenter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/MVPtoMVVM/presenters/TodoItemPresenter.cs')
-rwxr-xr-xsrc/MVPtoMVVM/presenters/TodoItemPresenter.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/MVPtoMVVM/presenters/TodoItemPresenter.cs b/src/MVPtoMVVM/presenters/TodoItemPresenter.cs
index 8cb1c7b..96ee843 100755
--- a/src/MVPtoMVVM/presenters/TodoItemPresenter.cs
+++ b/src/MVPtoMVVM/presenters/TodoItemPresenter.cs
@@ -35,6 +35,7 @@ namespace MVPtoMVVM.presenters
private void InitializeView()
{
+ view.Id = Id;
view.Description = Description;
view.DueDate = DueDate;
view.SaveButtonEnabled = false;
@@ -51,7 +52,8 @@ namespace MVPtoMVVM.presenters
public void DeleteItem()
{
var item = itemMapper.MapFrom(this);
- itemRepository.Delete(item);
+ view.Remove(item.Id);
+ itemRepository.Delete(item);
}
private string description;