1
I don’t know if the title is right, but the question is this::
listaAgendaDetalhe = (from a in listaAgenda
join p in listaProfissional
on a.idProfissional equals p.id
select new agendaDetalhe()
{
ativo = p.ativo,
dataIni = a.dataIni,
especialidade = a.especialidade,
if (a.frequencia = 0)
frequencia = 'DIARIO'
else if (a.frequencia = 1)
frequencia = 'SEMANAL'
else if (a.frequencia = 2)
frequencia = 'QUINZENAL'
}).ToList();
The doubt is in the field frequencia
, I want to do a check before assigning a value to it, but the way I did, it doesn’t work.