/// <summary>
        /// 提交,修改
        /// </summary>
        /// <param name="tandasEntity"></param>
        /// <param name="keyValue"></param>
        public void SubmitForm(ProfileAmenitiesMarketEntity Entity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                Entity.Modify(keyValue);

                service.Update(Entity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "修改市容集贸市场信息【" + Entity.MarketName + "】成功!");
                }
                catch { }
            }
            else
            {
                Entity.Create();

                service.Insert(Entity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建市容集贸市场信息【" + Entity.MarketName + "】成功!");
                }
                catch { }
            }
        }
Ejemplo n.º 2
0
 public ActionResult SubmitForm(ProfileAmenitiesMarketEntity WayEntity, string keyValue)
 {
     App.SubmitForm(WayEntity, keyValue);
     return(Success("操作成功。"));
 }