I'm new to this programming and I need if someone can help me how to do this process of my project

This code shows the values of the table, but I need to see the value of the id

public List<ingreso> getIngreso(string search, string sort, string sortdir,
        int skip, int pageSize, out int totalRecord)
    {
        using (zipoforexfullEntities dc = new zipoforexfullEntities())
        {
            var v = (from a in dc.ingreso
                     where
                     a.obtener_seccion.Contains(search)||
                     a.n_folio.ToString().Contains(search)||
                     a.total.ToString().Contains(search)||
                     a.id_supervisor.ToString().Contains(search)||
                     a.id_tipo_ingreso.ToString().Contains(search)||
                     a.id_proveedor.ToString().Contains(search) ||
                     a.espesor.ToString().Contains(search) ||
                     a.ancho.ToString().Contains(search) ||
                     a.largo.ToString().Contains(search) ||
                     a.cantidad.ToString().Contains(search) ||
                     a.total_metro_cubico.ToString().Contains(search) ||
                     a.fecha_ingreso.ToString().Contains(search)

                     select a
                     );
            totalRecord = v.Count();
            v = v.OrderBy(sort + " " + sortdir);
            if (pageSize > 0)
            {
                v = v.Skip(skip).Take(pageSize);
            }
            return v.ToList();

        }

    }

Help me please, I'm new to programming

Related posts

Recent Viewed