예제 #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());
 }