1
I understood in the previous post the badrequest. I need to assemble a message for it as follows. If a commodity does not have a Serial Number, I must assemble a message and send it. Let’s say my query returns me 7 items and these two do not have Serial Number. These two should compose the Badrequest message. Type like this:
if(Num.SerialNumber == nul)
{
//aqui vai a mensagem. Veja que é um array, pois tenho dois caras sem o SN
}
then, in the result of my Action do
return BadRequest(mensagem);
where message would be the guys without the SN.