How to create Object for Class in Asp.net MVC
<p>I have class</p>

<pre><code> public class TabMasterViewModel : ITabMasterModel
    {
        [ReadOnly(true)]
        public int colID { get; set; }
        [DisplayName("FirstName")]
        public string FirstName { get; set; }
        [DisplayName("LastName")]
        public string LastName { get; set; }
    }
</code></pre>

<p>Now i want to delete following three records from database</p>

<pre><code> [HttpPost]
        public ActionResult RemoveSelected(IList&lt;TabMasterViewModel&gt; TabMasters)
        {
            IList&lt;TabMasterViewModel&gt; TabMasters = new  IList&lt;TabMasterViewModel&gt;;  //this line is giving me an ERROR..
            List&lt;string&gt; dinosaurs = new List&lt;string&gt;();

            int[] colIDs = { 1034, 1035, 1036 };
            foreach (int colid in colIDs)
            {
                //TabMasters.Add(new TabMasterViewModel { colID = colid });
                TabMasterViewModel tvm = new TabMasterViewModel { colID = colid };
                TabMasters.Add(tvm);
                //_tabmasterService.Delete(tvm);
            }
            _tabmasterService.DeleteList(TabMasters);
            //return View(_tabmasterService.GetAll(x =&gt; (x.colID == 1034 || x.colID == 1035 || x.colID == 1036)));
            return RedirectToAction("Index");
        }
</code></pre>

<p>but i am not abel to write proper for </p>

<pre><code>IList&lt;TabMasterViewModel&gt; TabMasters = new  IList&lt;TabMasterViewModel&gt;
</code></pre>
