Example #1
0
        public async Task <IActionResult> Claim([FromBody] PoClaim claim)
        {
            PoClaim response;

            if (claim.claim_type == ClaimerType.InspectClaimer)
            {
                response = await _claimRepository.ClaimInspect(claim.po_id, claim.inspect_claimer ?? 0);
            }
            else
            {
                response = await _claimRepository.ClaimPublish(claim.po_id, claim.publish_claimer ?? 0);
            }
            return(Ok(response));
        }