public List <CountryMaster> GetData(CountryMasterFilter objFilter, bool prevFilter = false) { CountryDAL objCntDAL = null; try { objCntDAL = new CountryDAL(); SetCountryFilter(objFilter, prevFilter); return(objCntDAL.Get(objFilter)); } catch (Exception ex) { throw; } finally { objCntDAL = null; } }