diff --git a/fundamentals/minimal-apis/samples/arg-lists/Models/TodoDb.cs b/fundamentals/minimal-apis/samples/arg-lists/Models/TodoDb.cs index 2a2c0c3..993cc62 100644 --- a/fundamentals/minimal-apis/samples/arg-lists/Models/TodoDb.cs +++ b/fundamentals/minimal-apis/samples/arg-lists/Models/TodoDb.cs @@ -10,7 +10,6 @@ class TodoDb : DbContext public DbSet Todos => Set(); } -// // struct TodoItemRequest { @@ -18,10 +17,18 @@ struct TodoItemRequest public TodoDb Db { get; set; } } // + +// class CreateTodoItemRequest { public TodoItemDTO Dto { get; set; } = default!; public TodoDb Db { get; set; } = default!; } -record EditTodoItemRequest(int Id, TodoItemDTO Dto, TodoDb Db); + +class EditTodoItemRequest +{ + public int Id { get; set; } + public TodoItemDTO Dto { get; set; } = default!; + public TodoDb Db { get; set; } = default!; +} //