I need to add an array of strings in TempData["scripts"], but first I need to see if the string already exist... If it exist don't add it... else add it to the array.
This is what I have so far... It add the strings to the array... but I need to check the Tempdata first so it doesn't take duplicates...
@{
var scripts = (List<string>)TempData["scripts"];
scripts.Add("../Scripts/test.js");
scripts.Add("../Scripts/testv.js");
scripts.Add("../Scripts/testh.js");
}
ifor just call.Distinct()afterwards?