Exemplo n.º 1
0
        public JObject History()
        {
            string sPath  = ((Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest) this.Request).Path;
            string sQuery = ((Microsoft.AspNetCore.Http.Internal.DefaultHttpRequest) this.Request).QueryString.ToString();

            if (sPath != "/favicon.ico")
            {
                var    query = QueryHelpers.ParseQuery(sQuery);
                string sKey  = query.FirstOrDefault(t => t.Key.ToLower() == "id").Value;

                if (string.IsNullOrEmpty(sKey))
                {
                    sKey = Inv.LookupID(query.First().Key, query.First().Value);
                }

                return(Inv.GetHistory(sKey));
            }
            return(null);
        }