// GET: Municipality public ActionResult Index() { var municipalitiesList = munService.GetAllMunicipalityRecord(); if (municipalitiesList == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } return(View(@"~\Views\Configuration\Municipality\Index.cshtml", municipalitiesList)); }