Esempio n. 1
0
        public RetornoGlobal <List <CatalogProjeto> > getPaginationProjects(ParameterPagination parameters)
        {
            RetornoGlobal <List <CatalogProjeto> > retorno = new RetornoGlobal <List <CatalogProjeto> >();

            try
            {
                retorno.RetornoObjeto = contexto.TabelaCatalogProjeto.Include(r => r.ListaFotos).ToList().Skip(parameters.skip).Take(parameters.take).ToList();
                retorno.status        = true;
            }
            catch (Exception e)
            {
                retorno.status = false;
                retorno.errors.Append(e.Message);
                retorno.errors.Append(e.InnerException.ToString());
            }
            return(retorno);
        }
Esempio n. 2
0
 public RetornoGlobal <List <CatalogProjeto> > getDataPagination([FromBody] ParameterPagination parameter) => repository.getPaginationProjects(parameter);