I have a view like below.

there is a column named "Durum". I set the record's value to online or offline with this. I change this value on this page. When I click online image, it becomes offline. I make this using ajax like below:
@foreach(var item in Model) { ........ ........ @if (item.Online == true) {<img id="[email protected]" src="/Areas/Admin/Content/images/icons/online.png" class="cursorpointer" title="Offline yap" onclick="SetOnlineStatus('/Bank/EditStatus',@item.Id)" />} else{<img id="[email protected]" src="/Areas/Admin/Content/images/icons/offline.png" class="cursorpointer" title="Online yap" onclick="SetOnlineStatus('/Bank/EditStatus',@item.Id)" />} } I write above code every page. So I want to put this online/offline part to the partial view. I want to put this online/offline state to a partial view. I need to send Id and Online values to partial. I tried to send two parmeter to partial view, but I could not. Can anyone giv me an idea about this issue? thanks.