public void CreateTodo([FromBody] Todo todoModels) { toDo.CreateTodo(todoModels); //call CreateTodo method with Todo model parameter }