コード例 #1
0
 public ActionResult Create(string wordInput)
 {
     if (wordInput != null)
     {
         LeetSpeakTranslator        newLeetSpeakTranslator  = new LeetSpeakTranslator(wordInput);
         List <LeetSpeakTranslator> allLeetSpeakTranslators = LeetSpeakTranslator.GetAll();
         return(View("Index", allLeetSpeakTranslators));
     }
     else
     {
         return(View("New"));
     }
 }
コード例 #2
0
        public ActionResult Index()
        {
            List <LeetSpeakTranslator> allLeetSpeakTranslators = LeetSpeakTranslator.GetAll();

            return(View(allLeetSpeakTranslators));
        }