public List<StateViewModel> GetStateList(string CountryCode) { DataTable state = _jobPostProcessor.GetStateListDetail(CountryCode); if (state.Rows.Count > 0) { List<StateViewModel> lstState = new List<StateViewModel>(); lstState = ConvertDatatableToModelList.ConvertDataTable<StateViewModel>(state); return lstState; } throw new UserNotFoundException("User not found"); }