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

                service.Update(Entity);

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

                service.Insert(Entity);

                try
                {
                    //添加日志
                    LogMess.addLog(DbLogType.Update.ToString(), "修改成功", "新建市容学校信息【" + Entity.SchoolName + "】成功!");
                }
                catch { }
            }
        }
Пример #2
0
 public ActionResult SubmitForm(ProfileAmenitiesSchoolEntity WayEntity, string keyValue)
 {
     App.SubmitForm(WayEntity, keyValue);
     return(Success("操作成功。"));
 }