コード例 #1
0
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="entity">实体</param>
        /// <returns></returns>
        public AjaxResult Update(AgentCompany entity)
        {
            AjaxResult res = new AjaxResult(ResultStatus.OK);

            entity.Valid();
            if (entity.Update() == 1)
            {
                res.Status = ResultStatus.OK;
            }
            else
            {
                res.Status  = ResultStatus.NO;
                res.Message = "更新失败!";
            }
            return(res);
        }
コード例 #2
0
 public string Update(AgentCompany entity)
 {
     entity.ModifiedOn = DateTime.Now;
     entity.ModifiedBy = UserInfoBLL.GetCurrentUserGuid();
     return(entity.Update().ToString());
 }