public async Task <int> GetCountAsync(ISpecification <TEntity> selectSpec)
 {
     try
     {
         return(await _repository.GetCountAsync(selectSpec));
     }
     catch (ApplicationException ex)
     {
         throw new RepositoryException("An error occured while getting count on an entity.", ex);
     }
 }