Beispiel #1
0
        public ActionResult <Todo> Create(Todo todo)
        {
            _todoService.Create(todo);

            return(CreatedAtRoute("GetBook", new { id = todo.Id.ToString() }, todo));
        }
Beispiel #2
0
        public ActionResult <Todo> Create([FromBody] Todo todo)
        {
            _todoServices.Create(todo);

            return(CreatedAtRoute("GetTodo", new { id = todo.Id.ToString() }, todo));
        }
Beispiel #3
0
 public void PostTodo(Todo todo)
 {
     DalTodo.Create(todo);
 }