Example #1
0
 public void ConvertTo(ToDoListView toDoListView, ToDoList toDoList)
 {
     toDoList.ToDoListPK = toDoListView.ToDoListPK;
     toDoList.Name       = toDoListView.Name;
     toDoList.Deadline   = toDoListView.Deadline;
     toDoList.Date       = toDoListView.Date;
     toDoList.Finished   = toDoListView.Finished;
     toDoList.Deleted    = toDoListView.Deleted;
 }
Example #2
0
 public void ConvertFrom(ToDoList toDoList, ToDoListView toDoListView)
 {
     toDoListView.ToDoListPK   = toDoList.ToDoListPK;
     toDoListView.Name         = toDoList.Name;
     toDoListView.Deadline     = toDoList.Deadline;
     toDoListView.Date         = toDoList.Date;
     toDoListView.UserFK       = toDoList.UserFK;
     toDoListView.CreationDate = toDoList.CreationDate;
     toDoListView.Finished     = toDoList.Finished;
     toDoListView.Deleted      = toDoList.Deleted;
 }