using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MediaBrowser.Common.Net.Handlers; using MediaBrowser.Controller; using MediaBrowser.Model.DTO; namespace MediaBrowser.Api.HttpHandlers { class UsersHandler : BaseJsonHandler> { protected override Task> GetObjectToSerialize() { return Task.FromResult>(Kernel.Instance.Users.Select(u => ApiService.GetDTOUser(u))); } } }