You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app.MapPost("/todos",(FormData<Todo>form)=>{vartodo=form.Value;// Do something with your todo here});publicrecordTodo(intId,stringTitle,boolIsComplete);
Can do this using MVC's binder via ModelBinder<T> now but obviously it uses MVC under the covers. A lighter weight option could be nice, although I'd need to decide how much of MVCs behavior to replicate and it's pretty complicated. Perhaps we could borrow some logic from the Options<T> configuration binding in Microsoft.Extensions.
The text was updated successfully, but these errors were encountered:
e.g.
Can do this using MVC's binder via
ModelBinder<T>
now but obviously it uses MVC under the covers. A lighter weight option could be nice, although I'd need to decide how much of MVCs behavior to replicate and it's pretty complicated. Perhaps we could borrow some logic from theOptions<T>
configuration binding inMicrosoft.Extensions
.The text was updated successfully, but these errors were encountered: