public IEnumerable <TViewModel> GetPaginated(IPaginate paginate) { var result = domainService.GetAll().AsQueryable().GetPaginate(paginate); return(iMapper.Map <IEnumerable <TEntity>, IEnumerable <TViewModel> >(result)); }