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)); }
public ActionResult VoiceToChineseWordWrong(int type) { List <Verb> Verbs = Repository.GetVoiceToChineseWordWrong(type); Verbs = ListShuffle.Shuffle(Verbs); ViewBag.Title = "Wrong Random"; return(View("VoiceToChinese", Verbs)); }
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)); }
public ActionResult VoiceToChineseAllRandom(int type) { List <Verb> Verbs = Repository.GetAllWordByType(type); Verbs = ListShuffle.Shuffle(Verbs); ViewBag.Title = "All Random"; return(View("VoiceToChinese", Verbs)); }
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)); }