First, you're retrieving something you call
accountname
, but after retrieving it, I don't see where you're using it in the next statement.
Second, I would do this for the 2nd line:
Int64 value;
if (Int64.TryParse(cmb_Subgroupmobiles.SelectedValue.ToString(), out value)
{
insert_ReadyMade_Mobil(value, ID.ToString());
}
else
{
}