Example #1
0
        public void ViewAddTodoList()
        {
            Console.WriteLine("MENAMBAH TODOLIST");

            var todo = InputUtil.Input("Todo (x Jika Batal)");

            if (todo.Equals("x"))
            {
            }
            else
            {
                _todoService.AddTodoList(todo);
            }
        }
Example #2
0
 public async Task <ActionResult <TodoList> > AddTodoList(NewTodoList newlist)
 {
     // return
     return(Ok(await _todoService.AddTodoList(newlist)));
 }