I want to create a view using razor template, but I do not want to write a class for model, because in many views i will have many queries which will be returning diferent m
It seems you can't pass anonymous types but if you just want the values of the type you might pass an enumerable of an object array to view.
View:
@model IEnumerable
Controller:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
namespace ZZZZZ
{
public class HomeController : Controller
{
public ActionResult Index()
{
List