| 12345678910111213141516171819202122232425262728293031323334 |
- using System.Threading.Tasks;
- using System.Web.Mvc;
- using System.Web.WebPages;
- using WeOnlineApp.Question;
- namespace WeOnlineApp.Controllers
- {
- public class QuestionController : IwbControllerBase
- {
- public QuestionController(QuestionAppService questionApp)
- {
- QuestionApp = questionApp;
- }
- public QuestionAppService QuestionApp { get; }
- public async Task<ActionResult> Detail(string id)
- {
- CheckAccount();
- if (id.IsEmpty())
- {
- CheckErrors("问题编号不能为空!");
- }
- var question = await QuestionApp.GeQuestionDetail(id);
- if (question == null)
- {
- CheckErrors("未查询到问题!");
- }
- return View(question);
- }
- }
- }
|