aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/PersonsService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-16 22:44:06 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-16 22:44:06 -0400
commit85d7eb917f1cd7530e28fb0565564c79ddb910ed (patch)
tree99b4d6e42c62638d1dd85d7335bd4a290540870a /MediaBrowser.Api/UserLibrary/PersonsService.cs
parent1007f242002b77db50e004a5a937395fe60f9289 (diff)
made dtoservice synchronous
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/PersonsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/PersonsService.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/MediaBrowser.Api/UserLibrary/PersonsService.cs b/MediaBrowser.Api/UserLibrary/PersonsService.cs
index 301052444..9fe9f7139 100644
--- a/MediaBrowser.Api/UserLibrary/PersonsService.cs
+++ b/MediaBrowser.Api/UserLibrary/PersonsService.cs
@@ -8,7 +8,6 @@ using ServiceStack.ServiceHost;
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Threading.Tasks;
namespace MediaBrowser.Api.UserLibrary
{
@@ -72,7 +71,7 @@ namespace MediaBrowser.Api.UserLibrary
/// <returns>System.Object.</returns>
public object Get(GetPerson request)
{
- var result = GetItem(request).Result;
+ var result = GetItem(request);
return ToOptimizedResult(result);
}
@@ -82,7 +81,7 @@ namespace MediaBrowser.Api.UserLibrary
/// </summary>
/// <param name="request">The request.</param>
/// <returns>Task{BaseItemDto}.</returns>
- private async Task<BaseItemDto> GetItem(GetPerson request)
+ private BaseItemDto GetItem(GetPerson request)
{
var item = GetPerson(request.Name, LibraryManager);
@@ -93,10 +92,10 @@ namespace MediaBrowser.Api.UserLibrary
{
var user = UserManager.GetUserById(request.UserId.Value);
- return await DtoService.GetBaseItemDto(item, fields.ToList(), user).ConfigureAwait(false);
+ return DtoService.GetBaseItemDto(item, fields.ToList(), user);
}
- return await DtoService.GetBaseItemDto(item, fields.ToList()).ConfigureAwait(false);
+ return DtoService.GetBaseItemDto(item, fields.ToList());
}
/// <summary>