public IHttpActionResult PostColumn(Column column)
        {
            WebStructureService webStructureService = new WebStructureService();

            webStructureService.UpsertColumns(column, db);

            return(CreatedAtRoute("DefaultApi", new { id = column.ColumnId }, column));
        }
Esempio n. 2
0
        public IHttpActionResult PostRow(Row row)
        {
            WebStructureService webStructureService = new WebStructureService();

            webStructureService.UpsertRows(row, db);

            return(CreatedAtRoute("DefaultApi", new { id = row.RowId }, row));
        }
        public IHttpActionResult GetColumn(int id)
        {
            WebStructureService webStructureService = new WebStructureService();

            var content = webStructureService.GetColumnVMLists(id, db);

            return(Ok(content));
        }
Esempio n. 4
0
        public IHttpActionResult GetRow(int id)
        {
            WebStructureService webStructureService = new WebStructureService();

            var content = webStructureService.GetRowsByPageId(id, db);

            return(Ok(content));
        }