public async Task <IActionResult> GetPersons(string personModelId) { AzureVideoIndexerHelper helper = new AzureVideoIndexerHelper(this.AzureConfiguration, this.CreateAuthorizedHttpClient()); GetPersonsResponse result = await helper.GetAllPersonsInPersonModel(personModelId); return(Ok(result)); }
public static GetPersonsResponse Unmarshall(UnmarshallerContext context) { GetPersonsResponse getPersonsResponse = new GetPersonsResponse(); getPersonsResponse.HttpResponse = context.HttpResponse; return(getPersonsResponse); }
public async Task <IActionResult> GetAll([FromQuery] GetPersonsRequest request) { try { var persons = await personService.GetAllAsync(); var response = new GetPersonsResponse { Items = mapper.Map <List <PersonDto> >(persons), Total = persons.Count }; return(Ok(response)); } catch (Exception e) { return(ExceptionResult(e)); } }