Ejemplo 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);
        }
Ejemplo n.º 2
0
        public ArrayList GetTableSts()
        {
            TablePercistance pp = new TablePercistance();

            return(pp.freeTable());
        }