Beispiel #1
0
 public ActionResult NotifyEdit(int? id)
 {
     if (id != null)
     {
         NotifyEditViewData viewData = new NotifyEditViewData();
         viewData.Notify = (from c in CQGJ.News
                            where c.NewsID == id.Value
                            select c).First();
         return View("NotifyEdit", viewData);
     }
     return null;
 }
Beispiel #2
0
 public void NotifyEdit(int? id)
 {
     if (id != null)
     {
         NotifyEditViewData viewData=new NotifyEditViewData();
         viewData.Notify = (from c in CQGJ.News
                      where c.NewsID == id.Value
                      select c).First();
         RenderView("NotifyEdit", viewData);
     }
 }