public ActionResult AddQuestion(int id, SubjectTypeEnum subjectType) { subjectType = SubjectTypeEnum.判断题; QuestionInputModel question = null; return(View(subjectType.ToString(), question)); }
public static string GetValue(this SubjectTypeEnum type) { switch (type) { case SubjectTypeEnum.book: return("书籍"); case SubjectTypeEnum.anime: return("动画"); case SubjectTypeEnum.music: return("音乐"); case SubjectTypeEnum.game: return("游戏"); case SubjectTypeEnum.real: return("三次元"); default: return(type.ToString()); } }