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

GetFirstMatch() public method

public GetFirstMatch ( [ device ) : DeviceInfo
device [
return Automobile.Mobile.Framework.Data.DeviceInfo
        public DeviceInfo GetFirstMatch([FromUri]DeviceInfo device)
        {
            var d = MobileDb.Instance.GetFirstMatch(device);
            if (d == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }

            return d;
        }