Exemple #1
0
        public IActionResult Index()
        {
            SailingRocksContext db = new SailingRocksContext();

            ViewBag.LatestRocks = db.Rocks.OrderByDescending(r => r.Id).Take(6);


            return(View());
        }
Exemple #2
0
 public UserRockRepository(SailingRocksContext db) : base(db)
 {
 }
 public LocationRepository(SailingRocksContext db) : base(db)
 {
 }