Last active
April 24, 2020 10:55
-
-
Save ashour/f943625fd4577dbae91a4bda4619db3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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