public IHttpActionResult PostColumn(Column column) { WebStructureService webStructureService = new WebStructureService(); webStructureService.UpsertColumns(column, db); return(CreatedAtRoute("DefaultApi", new { id = column.ColumnId }, column)); }
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)); }
public IHttpActionResult GetRow(int id) { WebStructureService webStructureService = new WebStructureService(); var content = webStructureService.GetRowsByPageId(id, db); return(Ok(content)); }