示例#1
0
 public ActionResult NewTest(int id, string tab = "")
 {
     var common = new CommonService();
     var test = common.NewTest(id);
     ActionResult action = null;
     if (common.IsHavePermission && test != null)
     {
         ViewBag.Tab = tab;
         action = View(test);
     }
     else
     {
         action = View("ErrorDetail", (object)Constants.DefaultNoPermission);
     }
     return action;
 }