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