Repository

namespace MvcApplication1.Models
{
 public class GroupRepository
 {
 EgovtDataContext db = new EgovtDataContext();

```
    public IQueryable<Group> FindAllGroups()
    {
     return db.Groups;
    }

    public IQueryable<Group> FindGroups()
    {
        return from Group in FindAllGroups()
               orderby Group
               select Group;
    }

    public Group GetGroups(int id)
    {
        return db.Groups.SingleOrDefault(d => d.int_GroupId == id);
    }

    //

    public void Add(Group group)
    {
        db.Groups.InsertOnSubmit(group);
    }

    public void Delete(Group group)
    {

        db.Groups.DeleteOnSubmit(group);
    }

    //
    // Persistence 

    public void Save()
    {
        db.SubmitChanges();
    } 

}

```

}

CONTROLLER

```
public ActionResult Index()
    {

        GroupRepository grouprepository = new GroupRepository();

        ViewData["Group"] = grouprepository.FindGroups();

        return View();

    }

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
    Inherits="System.Web.Mvc.ViewPage" %>

<% foreach (Group i in ViewData["Group"] as List<Group>)

{ %>

   <input type="checkbox" name="Inhoud" 
          value="<%= i.int_GroupId %>" checked="checked" />

<% } %>  

```

The thing is that it is not able to find group id and displaying the following error. What is the solution?

```
CS1061: 'System.Text.RegularExpressions.Group' does not contain a definition
 for 'int_GroupId' and no extension method 'int_GroupId' accepting a first 
 argument of type 'System.Text.RegularExpressions.Group' could be found 
 (are you missing a using directive or an assembly reference?)
```