public async Task <Result <AuthResponseData, OkraError> > AuthByCustomerAsync(AuthByCustomerRequest request) { var url = "auth/getByCustomer"; var response = await _okraApi.Post <AuthResponse, AuthByCustomerRequest>(url, request); return(response.ToResult()); }
public async Task <IActionResult> AuthByCustomer([FromForm] AuthByCustomerRequest request) => Result(await _api.AuthByCustomerAsync(request));