private void IfAskTextQuestions(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
{
if (!currentAsk.IsAskText)
return;
var list = Person.Text[((AskText)currentAsk).UniqueId].Where(a => a.Value.HasValue()).ToList();
if (!list.Any())
return;
var lastKey = list.Last().Key;
foreach (var item in list)
{
RowStyle = lastKey == item.Key ? CssStyle.BottomBorder : CssStyle.PadBottom;
options.Template(writer, new
{
Question = item.Key,
Answer = item.Value,
});
}
}