Exemple #1
0
        public JsonResult GetAll()
        {
            var model = _loaiPhongRepository.GetAll();

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

            return(Json(new
            {
                status = true,
                KhuNha = khuNha,
                LoaiPhong = loaiPhong
            }, JsonRequestBehavior.AllowGet));
        }