示例#1
0
        public ActionResult CapNhatDiemDoManageModal(int id)
        {
            ViewBag.ListNhaMay = NhaMayDAO.GetAllNhaMay();
            ViewBag.ListTCDD   = TinhChatDiemDoDAO.GetAllTCDD();
            DiemDo dd = new DiemDo();

            if (id == 0)
            {
                //return Json(new { success = true, data = View() });
                return(PartialView());
            }

            var rs = DiemDoDAO.GetDiemDoById(id, out dd);

            //return Json(new { success = rs, data = View(sldk) });
            return(PartialView(dd));
        }
示例#2
0
 public ActionResult CapNhatDiemDoView()
 {
     ViewBag.ListNhaMay = NhaMayDAO.GetAllNhaMay();
     ViewBag.ListTCDD   = TinhChatDiemDoDAO.GetAllTCDD();
     return(View());
 }