I have this code there Federal_Mandate I am checking weather this MandateType is 1 or 0
if its one I am just converting this as 1 or 0
mandate.Federal_Mandate = collection["MandateType"].ToString().Equals("Federal") ? Convert.ToByte(1) : Convert.ToByte(0);
and my datbase Federal_mandate datatype has tiinyint.
is that something doing wrong i am here.. why I am gettting object reference error here?
thanks
one of
mandate,collectionandcollection["MandateType"]is null. Set a breakpoint and find out which.