Hi
My model name InputCodeModel.
In my BLClass im getting values from DB like
InputCodeModel inputCode = dbaInputCode.GetTaxIdfromInputCode();if(inputCode==null){ taxID=inputCode.Fed_Wh_Id;}..and i have lot of codes. I have to check for null so many times. So im thinking to do like this
inputCode=null ? TaxId = 0 : TaxId = InPutCode.Fed_Wh_Id;
but getting error like cannot convert null to 'bool' because it is non-nullable value type.How can i check inputCode(model that gets value filled from DB) IS noll or not?
Go to the complete details ...