コード例 #1
0
        public IActionResult Create(string EquipmentName)
        {
            var model = new CharacterSheetApp.Models.Equipment();

            Models.Equipment.Create(EquipmentName);
            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public IActionResult Index()
        {
            var aEquipment = new CharacterSheetApp.Models.Equipment();

            aEquipment.Name = "Shield";

            return(View(aEquipment));
        }