public async Task <IActionResult> GetUserDrones(DroneListFilterViewModel filterViewModel) { var identityUser = await _userManager.GetUserAsync(User); var person = await _personService.GetByIdAsync(identityUser.PersonId); var filter = Mapper.Map <DroneListFilter>(filterViewModel); var drones = _droneService.GetDronesByPersonId(person.Id, filter); foreach (var drone in drones) { drone.Owner = null; } return(Json(drones)); }