public async Task <OperationResult <string> > SelectTireChangedActivityAsync(TireActivityRequest request) { if (string.IsNullOrEmpty(request.VehicleId) || string.IsNullOrEmpty(request.TireSize)) { return(OperationResult.FromError <string>(ErrorCode.ParameterError, "参数无效,VehicleId与TireSize必须有值")); } return(OperationResult.FromResult(await ActivityManager.SelectTireChangedActivityAsync(request))); }
public async Task <OperationResult <TireActivityModel> > SelectTireActivityNewAsync(TireActivityRequest request) => OperationResult.FromResult(await ActivityManager.SelectTireActivityNewAsync(request));