public UnifyApiResult Edit(OperatorModel model) { if (model == null) { return(UnifyApiResult.Error("参数不能为空。")); } if (!string.IsNullOrEmpty(model.Password)) { model.Password = EncryptionHelper.UserMd5(model.Password); } OperatorDAL dal = new OperatorDAL(); dynamic result = dal.Modify(model); return(UnifyApiResult.Sucess(result)); }