Automobile.Registrar.DeviceController.GetDeviceById C# (CSharp) Method

GetDeviceById() public method

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

            return d;
        }