Ejemplo n.º 1
0
 public PartialViewResult AnswerList(int id, int factorTypeId, string filter)
 {
     IList<RowsourceEntity> FactorTypes = Service.FactorType();
     AnswerListViewModel model = new AnswerListViewModel()
     {
         Answers = Service.FactorGet(id, factorTypeId, filter),
         FactorTypes = Service.FactorType(),
         CurrentFactorTypeId = factorTypeId
     };
     return PartialView("_AnswerList", model);
 }
Ejemplo n.º 2
0
        public PartialViewResult AnswerList(int id, int factorTypeId)
        {
            IList<RowsourceEntity> FactorTypes = Service.FactorType();
            AnswerListViewModel model = new AnswerListViewModel()
            {
                Answers = Service.FactorGet(id, factorTypeId,""), //TODO IMplement filter
                FactorTypes = Service.FactorType(),
                CurrentFactorTypeId = factorTypeId
            };
            //FactorTypeEntity factorType = null;
            //if (factorTypeId > 0) factorType = Service.FactorTypeGet(factorTypeId);
            //model.FactorType = factorType;

            return PartialView("_AnswerList", model);
        }