/// <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; }
/// <summary> /// Recupera el listado de todos los items. /// </summary> /// <returns></returns> public List<Poll> Get() { PollMapper pollMapper = new PollMapper(); return pollMapper.Get(); }