I am using the following:
if (Model.Notes.Length == null || Model.Notes.Length < 170) {
But there is an error when the Notes value is null. I thought this would allow it to work but I still get the error. Can someone tell me how I can make this work even if Model.Notes is null?
Add a null check before accessing any properties.