It is very much possible to embed JavaScript in Razor, yes, and you can use values in your Model object to generate the JavaScript too, for example:
var foo = {someValue: '@Model.SomeValue,', someOtherValue: '@Model.SomeOtherValue'};
There are a few ways to achieve what you want to do, though. You could create a form using Html.BeginForm and style the submit button like a link. Then you wouldn't need any JavaScript. Or, you could use JQuery to attach a function to the click event of your link:
<input type="text" id="ZIP" name="ZIP" />
<a [email protected]("VerifyZIP","Controller",new{ @id = "my-link")>Send To Controller</a>
<script>
$('#my-link').click(function () {
var url = '@Url.Action("VerifyZIP","Controller")';
var zipValue = $('#ZIP).val();
var params = { zipValue };
$.get(url, params, function(response) {
// do something with response
);
});
</script>
Of course you could do the above as a inline function an onClick attribute, if you wanted.
It very much depends on what you are trying to do. It seems like maybe you just need a form, to me.