ConsumeAPI.UI.Simple by Neville Nazerane

<PackageReference Include="ConsumeAPI.UI.Simple" Version="1.0.0-beta" />

 ModelHandler<TModel>

public class ModelHandler<TModel>
public TModel Model { get; set; }

public ModelHandler()

protected virtual Task DuringAsyncSubmit(Func<Task> submission)

protected void Link<T, TItem, TError, TItemBinder, TErrorBinder>(Expression<Func<TModel, T>> lamda, TItem TextField, TError ErrorList) where TItemBinder : IModelItemBinder<TItem, T> where TErrorBinder : IModelErrorBinder<TError>

protected virtual void OnBadGateway(string response)

protected virtual void OnForbidden(string response)

protected virtual void OnInternalServerError(string response)

protected virtual void OnNotFound(string response)

protected virtual void OnUnauthorized(string response)

public void Submit(Func<TModel, DefaultConsumedResult> func, Action<string> OnSuccess)

public void Submit<TResult>(Func<TModel, ConsumedResult<TResult>> func, Action<TResult> OnSuccess)

public Task SubmitAsync(Func<TModel, Task<DefaultConsumedResult>> func, Action<string> OnSuccess)

public Task SubmitAsync<TResult>(Func<TModel, Task<ConsumedResult<TResult>>> func, Action<TResult> OnSuccess)