Without knowing more about what "This is not working" really means. Personally I would change your datadiff statement to the following
SELECT cla.custID
FROM CustomerLastAction cla
WHERE (DATEDIFF(day, cla.LastActionDate, GETDATE())) > 365
there are also many other solutions in the this
ASP.NET thread on datadiff[
^]