public ActionResult SubmitForm(ProfileAmenitiesShopEntity Entity, string keyValue) { Entity.MainWayName = MainWayApp.GetForm(Entity.MainWayId).MainWayName; App.SubmitForm(Entity, keyValue); return(Success("操作成功。")); }
/// <summary> /// 提交,修改 /// </summary> /// <param name="tandasEntity"></param> /// <param name="keyValue"></param> public void SubmitForm(ProfileAmenitiesShopEntity Entity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { Entity.Modify(keyValue); service.Update(Entity); try { //添加日志 LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改市容一点一档信息【" + Entity.ShopName + "】成功!"); } catch { } } else { Entity.Create(); service.Insert(Entity); try { //添加日志 LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建市容一点一档信息【" + Entity.ShopName + "】成功!"); } catch { } } }