public List <CityViewModel> GetCitiesWithJobSeekerInfo() { DataTable city = _homeRepositories.GetCitiesWithJobSeekerInfo(); if (city.Rows.Count > 0) { List <CityViewModel> lstCity = new List <CityViewModel>(); lstCity = ConvertDatatableToModelList.ConvertDataTable <CityViewModel>(city); return(lstCity); } throw new UserNotFoundException("User not found"); }