public ActionResult FetchLocationDetails() { AdminRole list1 = new AdminRole(); List <AdlocationDetails> list2 = new List <AdlocationDetails>(); list2 = list1.FetchLocationDetails(); ViewBag.list = list2; return(View()); }