Пример #1
0
 // GET: Editor/Details/5
 public ActionResult Details(int?id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     Data.Rule rule = service.GetRuleById((int)id);
     if (rule == null)
     {
         return(HttpNotFound());
     }
     return(View(rule));
 }