1
I need it in one expression to bring three possible outcomes. If date is up to 15dd, returns 1, if it is between 15 and 45 dd returns 2 and if it is larger than 45 returns 3. This is my lambda and the corresponding date field.
var resultado = webDB.T_Controle_Importacao.Where(ci => ci.DataTransacao....)
How I bring three possible results?
Just one more question. A lambda does not accept && or AND, I have to do as many Where as mine and(&&) right?
– pnet
No problem using these operators.
– Miguel Angelo
Your question is not yet very clear to me. Could you explain better what these values are for (1, 2 and 3)? Could exemplify in what context these values will be used?
– Miguel Angelo
I need these values to indicate to the user the status of this cnpj. Are these three status(1,2 and 3).
– pnet