How do I convert int? into int
- by Richard77
Hello,
I've create a SPROC that saves an object and returns the id of the new object saved. Now, I'd like to return an int not an int?
public int Save(Contact contact)
{
int? id;
context.Save_And_SendBackID(contact.FirstName, contact.LastName, ref id);
//How do I return an int instead of an int?
}
Thanks for helping