public async Task <IActionResult> MasiveScan() { (HttpStatusCode statusCode, string message, bool response) = await _idScanBusiness.MasiveScan(); if (statusCode != HttpStatusCode.NoContent && Response != null) { Response.StatusCode = (int)statusCode; } return(ServiceAnswer <bool> .Response(statusCode, message, response)); }
public async Task <IActionResult> Create([FromBody] CreateQuotasRequest createQuotasRequest) { (HttpStatusCode statusCode, string message, bool response) = await _quotaBusiness.CreateQuotas(createQuotasRequest); if (statusCode != HttpStatusCode.NoContent && Response != null) { Response.StatusCode = (int)statusCode; } return(ServiceAnswer <bool> .Response(statusCode, message, response)); }
public async Task <IActionResult> Scan([FromBody] IdScanRequest idScanRequest) { (HttpStatusCode statusCode, string message, IdScanResponse response) = await _idScanBusiness.Scan(idScanRequest); if (statusCode != HttpStatusCode.NoContent && Response != null) { Response.StatusCode = (int)statusCode; } return(ServiceAnswer <IdScanResponse> .Response(statusCode, message, response)); }
public async Task <IActionResult> SimulateQuotas([FromBody] SimulateQuotasRequest simulateQuotasRequest) { (HttpStatusCode statusCode, string message, SimulateQuotasResponse response) = await _quotaBusiness.SimulateQuotas(simulateQuotasRequest); if (statusCode != HttpStatusCode.NoContent && Response != null) { Response.StatusCode = (int)statusCode; } return(ServiceAnswer <SimulateQuotasResponse> .Response(statusCode, message, response)); }
public async Task <IActionResult> GetByIdCredit(long idCredit) { (HttpStatusCode statusCode, string message, List <QuotaDataDto> response) = await _quotaBusiness.GetByCredit(idCredit); if (statusCode != HttpStatusCode.NoContent && Response != null) { Response.StatusCode = (int)statusCode; } return(ServiceAnswer <List <QuotaDataDto> > .Response(statusCode, message, response)); }
public async Task <IActionResult> GetInfoClient(long idClient) { (HttpStatusCode statusCode, string message, InfoClientResponseDto response) = await _clientsBusiness.GetInfoClientAsync(idClient); if (statusCode != HttpStatusCode.NoContent && Response != null) { Response.StatusCode = (int)statusCode; } return(ServiceAnswer <InfoClientResponseDto> .Response(statusCode, message, response)); }
public async Task <IActionResult> Create([FromBody] RequestClientDto requestClientDto) { (HttpStatusCode statusCode, string message, CreateClientResponseDto response) = await _clientsBusiness.CreateClientAsync(requestClientDto); if (statusCode != HttpStatusCode.NoContent && Response != null) { Response.StatusCode = (int)statusCode; } return(ServiceAnswer <CreateClientResponseDto> .Response(statusCode, message, response)); }
public async Task <IActionResult> Get(int idIdentificationType, string identification) { (HttpStatusCode statusCode, string message, ClientDataResponse response) = await _clientsBusiness.GetClientAsync(idIdentificationType, identification); if (statusCode != HttpStatusCode.NoContent && Response != null) { Response.StatusCode = (int)statusCode; } IActionResult actionResult = ServiceAnswer <ClientDataResponse> .Response(statusCode, message, response); return(actionResult); }