Skip to content

Instantly share code, notes, and snippets.

@craigholdheide

craigholdheide/HomeController.cs Secret

Last active Aug 24, 2019
Embed
What would you like to do?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcExample.Models;
namespace MvcExample.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
var products = ProductRepository.GetProducts();
return View(products);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment