Is there a more efficient approach to this code?
// save associated tag
let saveTag question =
if question.Tag = null then
()
else
let tagCount =
query{
for row in db.Tags_Tags_Tags do
where (row.Tag = question.Tag)
select row
count
}
if tagCount > 0 then
()
else
let tagToSave =
dbSchema.ServiceTypes.Tags_Tags_Tags(
Tag = question.Tag
)
insertRowIn db.Tags_Tags_Tags tagToSave
saveToDb()