public GetDeviceById ( string id ) : |
||
id | string | |
return |
public DeviceInfo GetDeviceById(string id)
{
var d = MobileDb.Instance.GetFirstMatch(new DeviceInfo {UniqueId = id});
if(d == null)
{
throw new HttpResponseException(HttpStatusCode.NotFound);
}
return d;
}