Don't load all people for search, display series being merged in
This commit is contained in:
parent
940fe80609
commit
39b6382467
6 changed files with 44 additions and 8 deletions
|
|
@ -48,6 +48,13 @@ public class PersonController : BaseApiController
|
|||
return Ok(await _unitOfWork.PersonRepository.GetPersonDtoByName(name, User.GetUserId()));
|
||||
}
|
||||
|
||||
[HttpGet("search-people")]
|
||||
public async Task<ActionResult<List<PersonDto>>> SearchPeople([FromQuery] string name)
|
||||
{
|
||||
var people = await _unitOfWork.PersonRepository.SearchPeople(name);
|
||||
return Ok(people.Select(person => _mapper.Map<PersonDto>(person)).ToList());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns all roles for a Person
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue