public JsonResult GetAll() { var model = _loaiPhongRepository.GetAll(); return(Json(new { status = true, data = model, }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetDropDownListData() { var khuNha = _khuNhaRepository.GetAll(); var loaiPhong = _loaiPhongRepository.GetAll(); return(Json(new { status = true, KhuNha = khuNha, LoaiPhong = loaiPhong }, JsonRequestBehavior.AllowGet)); }