Beispiel #1
0
        public ActionResult GetWordByTypeAndNumber(int type, int number)
        {
            List <Verb> Verbs = Repository.GetWordByTypeAndNumber(type, number);

            Verbs         = ListShuffle.Shuffle(Verbs);
            ViewBag.Title = number + " Random";
            return(View("ChineseToJapanese", Verbs));
        }
Beispiel #2
0
        public ActionResult VoiceToChineseWordWrong(int type)
        {
            List <Verb> Verbs = Repository.GetVoiceToChineseWordWrong(type);

            Verbs         = ListShuffle.Shuffle(Verbs);
            ViewBag.Title = "Wrong Random";
            return(View("VoiceToChinese", Verbs));
        }
Beispiel #3
0
        public ActionResult VoiceToChineseTodayRandom(int type)
        {
            List <Verb> Verbs = Repository.GetOneDayWordByType(DateTime.Today, type);

            Verbs         = ListShuffle.Shuffle(Verbs);
            ViewBag.Title = "Today Random";
            return(View("VoiceToChinese", Verbs));
        }
Beispiel #4
0
        public ActionResult VoiceToChineseAllRandom(int type)
        {
            List <Verb> Verbs = Repository.GetAllWordByType(type);

            Verbs         = ListShuffle.Shuffle(Verbs);
            ViewBag.Title = "All Random";
            return(View("VoiceToChinese", Verbs));
        }
Beispiel #5
0
        public ActionResult VoiceToChineseSelectOneDayRandom(DateTime date, int type)
        {
            List <Verb> Verbs = Repository.GetOneDayWordByType(date, type);

            Verbs         = ListShuffle.Shuffle(Verbs);
            ViewBag.date  = date.ToShortDateString();
            ViewBag.Title = date.ToShortDateString() + " Random";
            return(View("VoiceToChinese", Verbs));
        }