public void TestMVCModelAddItem()
 {
     Console.WriteLine("Number of Records Before: " + modelDS.Tables[0].Rows.Count);
     model.AddTodoListItem();
     newModelDS = model.GetTodoList();
     Console.WriteLine("Number of Records After: " + newModelDS.Tables[0].Rows.Count);
     Console.WriteLine(newModelDS.Tables[0].Rows[newModelDS.Tables[0].Rows.Count - 1]["Title"] +
                       " - " + newModelDS.Tables[0].Rows[newModelDS.Tables[0].Rows.Count - 1]["Text"]);
 }
Exemplo n.º 2
0
 public int AddTodo()
 {
     return(todoModel.AddTodoListItem());
 }