asp.net mvc - Composite C1 CMS Assign C# function result to a variable in Razor view -


i want assign result of inline c# function in composite c1 cms. it's simple string method. when try assing in way:

string link = @function("mynamespace.getlocwebsite", new { code = countrycode }); 

i see cs1003 error:

failed load function 'mynamespace.redirect' d:!projekty!!!branches\fmm_trunk\website\app_data\razor\mynamespace\redirect.cshtml(35): error cs1003: syntax error, ',' expected

does know how correctly assign function result variable ?


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -