public Task BindModelAsync(ModelBindingContext bindingContext) { var model = bindingContext.ModelName; var hasValue = false; if (!bindingContext.TryGetBigMapAction($"{model}", ref hasValue, out var value)) { return(Task.CompletedTask); } if (!bindingContext.TryGetBigMapAction($"{model}.eq", ref hasValue, out var eq)) { return(Task.CompletedTask); } if (!bindingContext.TryGetBigMapAction($"{model}.ne", ref hasValue, out var ne)) { return(Task.CompletedTask); } if (!bindingContext.TryGetBigMapActionList($"{model}.in", ref hasValue, out var @in)) { return(Task.CompletedTask); } if (!bindingContext.TryGetBigMapActionList($"{model}.ni", ref hasValue, out var ni)) { return(Task.CompletedTask); } if (!hasValue) { bindingContext.Result = ModelBindingResult.Success(null); return(Task.CompletedTask); } bindingContext.Result = ModelBindingResult.Success(new BigMapActionParameter { Eq = value ?? eq, Ne = ne, In = @in, Ni = ni }); return(Task.CompletedTask); }