I am using LINQ to SQL. Is the following code proper if I want to notify the sender that the database was updated successfully or is there a better way?
try
{
dc.ModelA.InsertOnSubmit(modela);
dc.SubmitChanges();
return true;
}
catch
{
return false;
}