public async Task <KycUpdateResponse> UpdateKycInfoAsync([FromBody] KycUpdateRequest request) { var model = _mapper.Map <KycInformation>(request); var result = await _kycService.UpdateKycInfoAsync(model); return(new KycUpdateResponse { Error = (UpdateKycErrorCodes)result }); }
public async Task <KycInformationUpdateResponse> UpdateKycInfoAsync([FromBody] KycInformationUpdateRequest request) { var adminUserId = Guid.Parse(_requestContext.UserId); var model = new KycUpdateRequest() { PartnerId = request.PartnerId, Comment = request.Comment, KycStatus = (KycStatus)request.KycStatus, AdminUserId = adminUserId, }; var result = await _kycClient.KycApi.UpdateKycInfoAsync(model); return(_mapper.Map <KycInformationUpdateResponse>(result)); }