예제 #1
0
        public JsonResult Crystals()
        {
            var crystals = new List <Crystal>();

            var crystal = new CrystalGen();

            crystals = crystal.Generate();

            return(Json(crystals, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public ActionResult Index()
        {
            var crystals = new List <Crystal>();

            var crystal = new CrystalGen();

            crystals = crystal.Generate();

            return(View(crystals));
        }