public async Task <IEnumerable <CustomEntity> > GetAll() { try { var entity = await _customRepository.GetAll(); return(entity); } catch (Exception e) { throw e; } }
public List <Entity> Get(int pageSize, int page) { return(_customRepository.GetAll(pageSize, page)); }