public List <AreaMaster> GetData(AreaMasterFilter objFilter, bool prevFilter = false) { AreaDAL objAreaDAL = null; try { objAreaDAL = new AreaDAL(); SetStateFilter(objFilter, prevFilter); return(objAreaDAL.Get(objFilter)); } catch (Exception ex) { throw; } finally { objAreaDAL = null; } }