C# 在mvc中使用网格视图绑定2个sql表(数据库优先)

C# 在mvc中使用网格视图绑定2个sql表(数据库优先),c#,html,css,sql,asp.net-mvc,C#,Html,Css,Sql,Asp.net Mvc,我想在我的应用程序中创建网格视图 首先是视图模型: 我的视图模型 我的控制器代码 public class ReportController : Controller { PropertyEntities1 Property_db = new PropertyEntities1(); public ActionResult ReportUsers(UserGridViewViewModel userrr) { var resualt = (fr

我想在我的应用程序中创建网格视图 首先是视图模型:

我的视图模型

我的控制器代码

public class ReportController : Controller
{
    PropertyEntities1 Property_db = new PropertyEntities1();
         public ActionResult ReportUsers(UserGridViewViewModel userrr)
    {
        var resualt = (from person in Property_db.Person_TB join user in Property_db.User_TB on person.Person_ID equals user.User_ID select new { person.Person_ID , person.Name, person.LName, user.Username, user.Password }).ToList();

        return View(resualt);
    }
}
我的视图代码

public class ReportController : Controller
{
    PropertyEntities1 Property_db = new PropertyEntities1();
         public ActionResult ReportUsers(UserGridViewViewModel userrr)
    {
        var resualt = (from person in Property_db.Person_TB join user in Property_db.User_TB on person.Person_ID equals user.User_ID select new { person.Person_ID , person.Name, person.LName, user.Username, user.Password }).ToList();

        return View(resualt);
    }
}

但它不起作用
我该怎么办?

您遇到了什么错误?鉴于它没有显示任何内容,我认为它在UserGridViewModel和reture Result之间有映射