Question: I have installed a VIOS using nimol, install completed successfully but I could access the VIOS from browser.

I am seeing the following error.

```
# /usr/bin/ksh /usr/ios/lpm/sbin/httpdmgr start
ready=12
Error: This is not a management partition.
Done

```

Answer: 
Mouse-over the `var` and your compiler will tell you what type it substitutes for it.

If you want to use that type explicitly instead, you will need to insert it instead of `var`. It won't change anything for the compiler though.
No need to declare `query` separately, 
use [?:operator](https://msdn.microsoft.com/en-us/library/ty67wk28.aspx) `var query = <condition> ? <1st Linq query> : <2nd Linq query>` instead of `if-else`
you can do this like that:

```
var query =  string.IsNullOrEmpty(dealer_code) ?  
             (from RESTAURANT in db.RESTAURANTs
             where RESTAURANT.REST_ID == RestID
             select new { name = RESTAURANT.name}):
             (from u in db.RESTAURANTs
             where u.dealer_code == dealer_code
             select new { name = u.name});

```