```
@{
    HotelManagementEntities db = new HotelManagementEntities();
    var list = db.tblCategories.Select(m => new { m.intseqid, m.varCategory}).ToList();
    ViewBag.Category = new SelectList(db.tblCategories, "intseqid", "varCategory");

}

@Html.DropDownList("tblCategories", 
                   ViewBag.Category as SelectList, 
                   new 
                   { 
                     @class = "drplist", 
                     id = "drpItemCat", 
                     ng_show = "selectfieldforcat" 
                   })

```