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: 
Your query currently allocates an anonymous type using `select new { }`, which requires you to use `var`. If you want allocate a known type, add it to your `select` clause:

```
IEnumerable<SomeType> query = 
         from RESTAURANT in db.RESTAURANTs
         where RESTAURANT.REST_ID == RestID
         select new SomeType { Name = RESTAURANT.name } ;

public class SomeType
{
    public string Name { get; set; }
}

```
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});

```