示例#1
0
        public ActionResult Statement(long id)
        {
            var model = _problemsService.GetStatement(id);

            if (model == null)
            {
                return(HttpNotFound());
            }

            return(View(model));
        }
示例#2
0
        public ActionResult Statement(long id)
        {
            var isAdmin = this.User.IsInRole("admin");

            var model = _problemsService.GetStatement(id, isAdmin);

            if (model == null)
            {
                return(HttpNotFound());
            }

            return(View(model));
        }