Beispiel #1
0
        // POST: api/Error
        public void Post([FromBody] Error value)
        {
            ErrorPersistence evp = new ErrorPersistence();

            if (value != null)
            {
                evp.InsertError(value);
            }
        }
Beispiel #2
0
        // GET: api/Error/5
        public Error Get(string posID)
        {
            ErrorPersistence ep = new ErrorPersistence();

            Error result = new Error();

            if (posID != String.Empty)
            {
                result = ep.GetErrorByPosID(posID);
            }

            return(result);
        }