Exemplo n.º 1
0
        /// <summary>
        /// 查看一条班级通知
        /// </summary>
        /// <param name="id">班级通知ID</param>
        public ActionResult NotifyView(int id)
        {
            HomeNotifyViewViewData viewData = new HomeNotifyViewViewData();

            viewData.Notify = (from n in CQGJ.Notify where n.NotifyID == id select n).First();

            return View("NotifyView", viewData);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 查看一条班级通知
        /// </summary>
        /// <param name="id">班级通知ID</param>
        public void NotifyView(int id)
        {
            HomeNotifyViewViewData viewData = new HomeNotifyViewViewData();

            viewData.Notify = (from n in CQGJ.Notify where n.NotifyID == id select n).First();

            RenderView("NotifyView", viewData);
        }