convert upload image url to rest

This commit is contained in:
LukePulverenti
2013-02-24 23:39:53 -05:00
parent add43baffe
commit b075e0a5b9
5 changed files with 107 additions and 172 deletions

View File

@@ -1,6 +1,4 @@
using MediaBrowser.Controller;
using MediaBrowser.Controller.Entities;
using System;
using System;
using System.Net;
namespace MediaBrowser.Api
@@ -10,24 +8,6 @@ namespace MediaBrowser.Api
/// </summary>
public static class ApiService
{
/// <summary>
/// Gets a User by Id
/// </summary>
/// <param name="id">The id of the user</param>
/// <returns>User.</returns>
/// <exception cref="System.ArgumentNullException">id</exception>
public static User GetUserById(string id)
{
if (string.IsNullOrEmpty(id))
{
throw new ArgumentNullException("id");
}
var guid = new Guid(id);
return Kernel.Instance.GetUserById(guid);
}
/// <summary>
/// Determines whether [is API URL match] [the specified URL].
/// </summary>