Hello friends I'm still stuck with this, someone can help me out ...
This is my error:
These are my models and my htmlCs
//kyo es el nombre de mi vista, este es el controller
//GET: Home/kyo
[Authorize]
public ActionResult Kyo( )
{
return View();
}
With this I am calling the models I want my data from
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PCotiza_compras.Models;
namespace PCotiza_compras.Models
{
public class ReqCatDep
{
public List<PCotiza_compras.Models.Departments> Dep { get; set; }
public List<PCotiza_compras.Models.Categories> Cat { get; set; }
public List<PCotiza_compras.Models.Requests> Req { get; set; }
}
}
And this is my view:
@model PCotiza_compras.Models.ReqCatDep
@{
ViewBag.Title = "Kyo";
}
<div class="panel-group" id="accordion">
<td>
@foreach (var item in Model.Cat)
{
<tr>
@item.Name
</tr>
<tr>
@item.Description
</tr>
}
</td>
</div>
Thanks to everyone:)