コード例 #1
0
        public IHttpActionResult Permit(string PermitNumber)
        {
            List <Inspection> li = Inspection.Get(PermitNumber);

            if (li == null)
            {
                return(InternalServerError());
            }
            else
            {
                if (Models.Permit.CheckPrivProv(PermitNumber))
                {
                    foreach (var i in li)
                    {
                        if (i.ResultADC == "" && i.InspReqID > 0)
                        {
                            Inspection.AddIRID(i);
                        }
                    }
                }

                return(Ok(li));
            }
        }