예제 #1
0
        public JsonResult GetAll()
        {
            var model = _lanhDaoRepository.GetAll();

            return(Json(new
            {
                status = true,
                data = model,
            }, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        //// GET: Admin/QuanLyDangKy
        public ActionResult QuanLyDangKyTheoNgay(int?idPhong, DateTime?date = null)
        {
            var phong             = _phongRepository.GetAll();
            var lanhDao           = _lanhDaoRepository.GetAll();
            var model             = _lichDangKyRepository.GetAllLichDangKy(idPhong, date);
            var HienThiLichDangKy = new HienThiLichDangKy();

            HienThiLichDangKy.LichDangKy = model;
            HienThiLichDangKy.Phong      = phong;
            HienThiLichDangKy.LanhDaos   = lanhDao;
            TempData["NgayDangKy"]       = date;
            return(View(HienThiLichDangKy));
        }
예제 #3
0
        public JsonResult GetLanhDao()
        {
            var lanhDaoList = _lanhDaoRepository.GetAll();

            return(Json(new
            {
                lanhDaoList,
                status = true
            }, JsonRequestBehavior.AllowGet));
        }