Automobile.Registrar.DeviceController.GetFirstMatch C# (CSharp) 메소드

GetFirstMatch() 공개 메소드

public GetFirstMatch ( [ device ) : DeviceInfo
device [
리턴 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;
        }