I have an array using MVC Model, which returns values an array of data. I am looping through the array to find out if an item Status is Inactive then want to hide Add Button else if item Status is Active show the Add button. IBelow is my code which is looping through the array and defaulting to the first item, therefore hiding the Button even if it is Active. Any help will be appreciated.