Ejemplo n.º 1
0
        public async Task <IActionResult> GetScoundrel(string policeId, string faceId)
        {
            var incidents = await _policeApiClient.GetRelatedPersonIncidents(policeId);

            var scoundrel = await _policeApiClient.GetScoundrel(policeId);

            return(Ok(new ScoundrelDetailedInfo
            {
                DateOfBirth = scoundrel.DateOfBirth,
                FirstName = scoundrel.FirstName,
                Gender = scoundrel.Gender,
                IdentifyGuid = scoundrel.IdentifyGuid,
                LastName = scoundrel.LastName,
                Incidents = incidents,
                Photo = scoundrel.Photo
            }));
        }