TryUpdateModel(object) not calling 'String.Trim()' on values!
Hi to all.
I've just bought this book and i'm finishing chapter 01.
I just noticed a thing:
When I create and/or edit a Dinner, all the values are stored on the DB filled with blankspaces at the end.
This is crashing my App, because on the method "IsHostedBy(String user)" it never returns true, because my login is "login" and it's stored "login "
So, How to avoid this?
|