asp.net mvc default parameter attribute -


is there way set default value on parameter not passed, eg:

    public actionresult index(int? page)     {} 

i'd have page=0 if no page passed, can remove nullable symbol. not want in routing, on action itself.

have tried:

public actionresult index(int page = 0) {} 

Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -