コード例 #1
0
 public IActionResult SubmitEvaluation(List <string> QuestionScore)
 {
     EvaluationDbManager.GetInstance().PushEvaluation(QuestionScore,
                                                      CurrentUser.Storage().CreatePostViewModel.evaluationPostID,
                                                      CurrentUser.Storage().CreatePostViewModel.userId,
                                                      CurrentUser.Storage().CreatePostViewModel.TaskTypeId);
     return(RedirectToAction("Index", "Main"));
 }
コード例 #2
0
 public IActionResult ViewEvaluationHistory()
 {
     return(View("ViewEvaluationHistory",
                 EvaluationDbManager.GetInstance().ListUserEvaluation(CurrentUser.Storage().UserDb.UserId)));
 }