public int GetSubAreaCountByName(string searchTerm, int pageSize, int pageNum, int?areaId) { _productDataAccess = new ProductDataAccess(_context); return(_productDataAccess.GetSubAreaCountByName(searchTerm, pageSize, pageNum, areaId)); }