I'm using
var redirectEsetting = Esetting.FetchByRelatieId(dbConnection, (int)Context.Profile["RelatieID"]).First();
Now I need to check if redirectEsetting.RelatieID has a value, otherwise i'm going to use
var redirectEsetting = Esetting.FetchByRelatieId(dbConnection, (int)Context.Profile["RelatieID"], true).First();
to get data from another place.
Yet, when I try
if(redirectEsetting.RelatieID == null) or something simular, it sais it's an int and it 'can't be null'.
Basically I need a way to check if I've got data in RelatieID
Aucun commentaire:
Enregistrer un commentaire