Skip to content

Instantly share code, notes, and snippets.

@ashour
Last active April 24, 2020 10:55
Show Gist options
  • Save ashour/f943625fd4577dbae91a4bda4619db3b to your computer and use it in GitHub Desktop.
Save ashour/f943625fd4577dbae91a4bda4619db3b to your computer and use it in GitHub Desktop.
using Heaventure.Data;
using System.Web.Mvc;
namespace Heaventure.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
var model = Constellation.All();
return View(model);
}
public ActionResult Details(int id)
{
var model = Constellation.FindById(id);
return View(model);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment