Using LLBL as Model in MVC

Posted by Quentin J S on Stack Overflow See other posts from Stack Overflow or by Quentin J S
Published on 2009-10-14T19:36:07Z Indexed on 2010/05/21 16:10 UTC
Read the original article Hit count: 561

Filed under:
|
|
|

I have settled on trying to use ASP.NET MVC but the first part I want to replace is the Model. I am using LLBL Pro for the model.

I have a table called "Groups" that is a simple look up table. I want to take thhe results of the table and populate a list in MVC. Something that should be very simple... or so I thought.... I've tried all kinds of things as I was getting errors like:

The model item passed into the dictionary is of type 'System.Collections.Generic.List1[glossary.EntityClasses.GroupEntity]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable1[glossary.CollectionClasses.GroupCollection]'.

private GroupCollection gc = new GroupCollection();

    public ActionResult Index()
    {

      gc.GetMulti(null);
      return View( gc.?????? );
    }

This is all I am trying to do, I've tried lots of variations, but my goal is simply to take the data and display it.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc