コード例 #1
0
        public List <Resposta> GetAllbyUser(int id)
        {
            RespostaDAL     dal       = new RespostaDAL();
            List <Resposta> respostas = dal.ConsultarPorUsuario(id);

            return(respostas);
        }
コード例 #2
0
        void CarregarRespostas()
        {
            RespostaDAL dal = new RespostaDAL();

            respostas = dal.ConsultarPorUsuario(UsuarioAtual.ID);
            int linha = 0;

            foreach (var item in respostas)
            {
                Grid_Respostas.Rows.Add();
                Grid_Respostas.Rows[linha].Cells[0].Value = item.Titulo;
                Grid_Respostas.Rows[linha].Cells[1].Value = item.ID;
                linha += 1;
            }
        }