public ResponseResult UpDataParameter(string parameterId, string uplimit, string lowlimit) { var result = ResponseResult.Default(); bool status = false; ParameterService parameterservice = new ParameterService(); try { if (string.IsNullOrEmpty(parameterId)) { return(ResponseResult.Error("参数Id不能为空")); } if (string.IsNullOrEmpty(uplimit)) { return(ResponseResult.Error("上限不能为空")); } if (string.IsNullOrEmpty(lowlimit)) { return(ResponseResult.Error("下限不能为空")); } else { status = parameterservice.UpDataParameter(Convert.ToInt32(parameterId), uplimit, lowlimit); result = ResponseResult.Success("修改成功"); } } catch (System.Exception ex) { result = ResponseResult.Error(ex.Message); } return(result); }