Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8804507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:37:24+00:00 2026-06-14T01:37:24+00:00

I got this in the controller var tobi = (from a in db.Assessments join

  • 0

I got this in the controller

var tobi = (from a in db.Assessments
join u in db.Users on a.rated equals u.user_id
join tm in db.Team_Members on u.user_id equals tm.user_id
join t in db.Teams on tm.team_id equals t.team_id
where (tm.end_date == null || tm.end_date > DateTime.Today)
group new TobiViewModel
{
    teamname = t.name,
    assessed_due = a.assessed_due,
    assessment_id = a.assessment_id,
    rater = a.rater,
    rated = a.rated
}
by new { t.name, a.rated }).ToList();

return View(tobi);

But then it doesn’t accept it in the view?

The model item passed into the dictionary is of type
‘System.Collections.Generic.List1[System.Linq.IGrouping2[<>f__AnonymousType102[System.String,System.String],Kyubu.ViewModels.TobiViewModel]]',
but this dictionary requires a model item of type
'System.Collections.Generic.IEnumerable
1[Kyubu.ViewModels.TobiViewModel]’.

how should i pass this in the view. Any help would be appreciated
The type in the view is

@model IEnumerable<Kyubu.ViewModels.TobiViewModel>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:37:25+00:00Added an answer on June 14, 2026 at 1:37 am

    Try the following in the view:

    @model IEnumerable<System.Linq.IGrouping<object, Kyubu.ViewModels.TobiViewModel>>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got this controller: class Start extends CI_Controller{ var $base; var $css; function
I got a ASP.NET MVC controller like this [Authorize] public class ObjectController : Controller
Got this code for a viewscroller from the apple developers site. @synthesize scrollView1, scrollView2;
I'm having problems getting the new data from the RandomNumbers List I got this
I've got controller code like this all over my ASP.NET MVC 3 site: [HttpPost]
I've got an MVC3 app. I'm calling the controller via ajax from a checkbox
I've got an action on a controller that is used to process requests from
I've currently got a View like this: @using (Html.BeginForm(Compare, Carousel, FormMethod.Post)) { @foreach (var
I got this code: (function($){ var ListView = Backbone.View.extend({ el: $('body'), // el attaches
I got this code block: (function($, exports) { var mod = function(includes) { if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.