public ActionResult Save() { RoleModel e = new RoleModel(); e = ObjectUtil.Eval <RoleModel>(e, Request.Params, "", ""); JsResultObject re = BaseZdBiz.SaveOrUpdate(e, "角色"); return(JsonText(re, JsonRequestBehavior.AllowGet)); }
public ActionResult Save() { GuestModel guest = new GuestModel(); guest = ObjectUtil.Eval(guest, Request.Params, "", ""); JsResultObject result = BaseZdBiz.SaveOrUpdate(guest, "住客"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult SaveHotelDetail(string id) { HotelDetailModel e = BaseZdBiz.Load <HotelDetailModel>(id); e = ObjectUtil.Eval <HotelDetailModel>(e, Request.Params, "", ""); JsResultObject re = BaseZdBiz.SaveOrUpdate(e, "酒店详细信息"); return(JsonText(re, JsonRequestBehavior.AllowGet)); }
public ActionResult Save() { UserModel e = new UserModel(); e = ObjectUtil.Eval <UserModel>(e, Request.Params, "", ""); JsResultObject re = BaseZdBiz.Save(e); return(JsonText(re, JsonRequestBehavior.AllowGet)); }
public ActionResult SaveDictType() { DictTypeModel dictType = new DictTypeModel(); dictType = ObjectUtil.Eval(dictType, Request.Params, "", ""); JsResultObject result = BaseZdBiz.SaveOrUpdate(dictType, "字典类型"); this.reflashDictCache(); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult SaveRecommend() { HotelRecommendModel hotel = new HotelRecommendModel(); 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)); }
public ActionResult SaveMemberCommentReward() { MemberRewardModel e = new MemberRewardModel(); e = ObjectUtil.Eval(e, Request.Params, "", ""); if (string.IsNullOrEmpty(e.id)) { e.id = e.createPk().ToString(); } JsResultObject result = BaseZdBiz.SaveOrUpdate(e, "会员点评奖励"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult SaveOuterLink(string id) { OuterLinkModel e = new OuterLinkModel(); e = ObjectUtil.Eval(e, Request.Params, "", ""); if (string.IsNullOrEmpty(e.id)) { e.id = e.createPk().ToString(); } JsResultObject result = BaseZdBiz.SaveOrUpdate(e, "外部链接"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult SaveExhi() { ExhiCommentModel e = new ExhiCommentModel(); e = ObjectUtil.Eval(e, Request.Params, "", ""); if (string.IsNullOrEmpty(e.id)) { e.id = e.createPk().ToString(); } JsResultObject result = BaseZdBiz.SaveOrUpdate(e, "展会评论"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult Save() { DictModel dict = new DictModel(); dict = ObjectUtil.Eval(dict, Request.Params, "", ""); if (string.IsNullOrEmpty(dict.id)) { dict.id = dict.createPk().ToString(); } JsResultObject result = BaseZdBiz.SaveOrUpdate(dict, "字典"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult Save() { GeoModel geo = new GeoModel(); geo = ObjectUtil.Eval(geo, Request.Params, "", ""); if (string.IsNullOrEmpty(geo.id)) { geo.id = geo.createPk().ToString(); } JsResultObject result = BaseZdBiz.SaveOrUpdate(geo, "地理信息"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult Save() { ExhiModel exhi = new ExhiModel(); exhi.status = BaseModel.STATUS_ACTIVATE; exhi = ObjectUtil.Eval(exhi, Request.Params, "", ""); if (string.IsNullOrEmpty(exhi.id)) { exhi.id = exhi.createPk().ToString(); } JsResultObject result = BaseZdBiz.SaveOrUpdate(exhi, "展会"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult Save() { NewsModel news = new NewsModel(); news.status = BaseModel.STATUS_ACTIVATE; news = ObjectUtil.Eval(news, Request.Params, "", ""); if (string.IsNullOrEmpty(news.id)) { news.id = news.createPk().ToString(); } JsResultObject result = BaseZdBiz.SaveOrUpdate(news, "新闻"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult Save() { BrandModel brand = new BrandModel(); brand.status = BaseModel.STATUS_ACTIVATE; brand = ObjectUtil.Eval(brand, Request.Params, "", ""); if (string.IsNullOrEmpty(brand.brandID)) { brand.brandID = brand.createPk().ToString(); } JsResultObject result = BaseZdBiz.SaveOrUpdate(brand, "连锁品牌"); return(JsonText(result, JsonRequestBehavior.AllowGet)); }
public ActionResult DoSubmitOrder() { OrderModel order = new OrderModel(); order = ObjectUtil.Eval <OrderModel>(order, Request.Params, "", ""); DateTime checkInDate = order.checkInDate; DateTime arraivalLateTime = new DateTime( checkInDate.Year, checkInDate.Month, checkInDate.Day , order.arraivalLateTime.Hour, 0, 0 ); order.arraivalLateTime = arraivalLateTime; order.arraivalEarlyTime = arraivalLateTime.AddHours(-3); ELongApiBiz elongBiz = ELongApiBiz.GetInstant(); JsResultObject re = elongBiz.submitHotelOrder(ref order); BaseZdBiz.SaveOrUpdate(order, ""); return(JsonText(re, JsonRequestBehavior.AllowGet)); }