public static Task <U> HandleGet <T, U>(this HttpClient httpClient, ApiModel <T> model, ILogger logger) where T : IRequest, new() where U : IResponse, new() { return(HandleException(GetFunct <T, U>, model, httpClient, logger)); }
public static Task <Response <bool> > HandleDelete <T>(this HttpClient httpClient, ApiModel <T> model, ILogger logger) where T : IRequest, new() { return(HandleException(DeleteFunct <T, Response <bool> >, model, httpClient, logger)); }
public static Task <U> HandlePost <T, U>(this HttpClient httpClient, ApiModel <T> model, ILogger logger, FileParameter file = null) where T : IRequest, new() where U : IResponse, new() { return(file == null?HandleException(PostFunct <T, U>, model, httpClient, logger) : HandleException(PostFileFunct <T, U>, model, httpClient, logger, file)); }