Esempio n. 1
0
 /// <summary>
 /// Recupera una encuesta en base a su id.
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Poll Get(int id)
 {
     PollQuestionManager pollQuestionManager = new PollQuestionManager();
     PollMapper pollMapper = new PollMapper();
     Poll poll = pollMapper.Get(id);
     PopulatePoll(poll);
     return poll;
 }
Esempio n. 2
0
 /// <summary>
 /// Recupera el listado de todos los items.
 /// </summary>
 /// <returns></returns>
 public List<Poll> Get()
 {
     PollMapper pollMapper = new PollMapper();
     return pollMapper.Get();
 }