Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to declare the variable correctly?
Message
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01553872
Message ID:
01571253
Views:
33
This message has been marked as a message which has helped to the initial question of the thread.
>>The where function just takes your entity as a parameter and you return a boolean result. If you want no results you just return false:
operators = operators.Where(o => false));
>>As for changing the type of the id, can't you just change the controller to accept string in place of int?
>
>I can change the controller action but I am a bit worried if I also need to change my routes (I use default). I haven't tried it yet, so I am going to try it and see if problems arise.

If you just change the type in the controller action method the route will continue to work.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform