// GET: Treasure
        public ActionResult Index()
        {
            treasureService = new TreasureService();
            var model = treasureService.GetAll().ToList();

            return(View(model));
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            treasureService = new TreasureService();
            List <Common.Entities.Treasure> list = treasureService.GetAll().ToList();

            GridView1.DataSource = list;
            GridView1.DataBind();
        }