Esempio n. 1
0
        public HttpResponseMessage Post([FromBody] Table value)
        {
            bool             recordExisted = false;
            TablePercistance pp            = new TablePercistance();

            recordExisted = pp.saveTable(value);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created);

            if (recordExisted)
            {
                response = Request.CreateResponse(HttpStatusCode.Found);
            }

            else
            {
                response = Request.CreateResponse(HttpStatusCode.Created);
            }
            return(response);
        }
        public ArrayList GetTableSts()
        {
            TablePercistance pp = new TablePercistance();

            return(pp.freeTable());
        }