c# – How to pass values of selected checboxes to controller

I can’t pass the values fro my view to controller i tried some of methods but nothing works fine for me.
I have one input field but on my web app when admin access to that page, only admin can select boxes for every employee, my last update was, I can made to do select only one by one checkbox, but when I try with jQuery or something else that doesn’t work.
Here is my cshtml.

    <table class="table table-striped grid-table" id="tableLabel">
                <button type="button" class="checkall" onClick="checkAll()">select/deselect</button>

@foreach (var item in (IEnumerable<cit.Models.getCheIdTip_Result>)Model)
                 <div class="pure-checkbox">
                 <input type="checkbox" idtip="@item.idtip" class="checktip" 
                 checked="@(item.idemployee == ViewBag.idemployee ? true : false)"
                 name="@item.id.ToString()" id="@item.id.ToString()" />
                 <label for="@item.id.ToString()"></label>
    <input type="hidden" value="@ViewData("idemployee")" name="idemployee" id="idemployee" class="idemployee" />

This is js code below, I successfully select all of the boxes but when I try to pass values to controller with form collection nothing happen, or when I need to click to sellect all I open inspect element and go to section network to try catch some error or something, so there is also nothing on click event.

        var isChecked = false;
function checkAll() {
    var checkboxes = document.getElementsByTagName('input');
    if (isChecked) {
        for (var i = 0; i < checkboxes.length; i++) {
            if (checkboxes(i).className == 'checktip') {
                checkboxes(i).checked = true;
    } else {
        for (var i = 0; i < checkboxes.length; i++) {
            if (checkboxes(i).className == 'checktip') {
                checkboxes(i).checked = false;
    isChecked = !isChecked;

Is there any solution or function to resolve this problem?