public JsonResult GetAll() { var model = _lanhDaoRepository.GetAll(); return(Json(new { status = true, data = model, }, JsonRequestBehavior.AllowGet)); }
//// 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)); }
public JsonResult GetLanhDao() { var lanhDaoList = _lanhDaoRepository.GetAll(); return(Json(new { lanhDaoList, status = true }, JsonRequestBehavior.AllowGet)); }