Esempio n. 1
0
        public ActionResult Save()
        {
            HotelModel hotel = new HotelModel();

            hotel = ObjectUtil.Eval(hotel, Request.Params, "", "");
            if (string.IsNullOrEmpty(hotel.hotelId))
            {
                hotel.hotelId = hotel.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(hotel, "酒店");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }