// PUT api/Workspaces/5
        public async Task<IHttpActionResult> PutWorkspace(int id, Workspace workspace)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != workspace.WorkspaceId)
            {
                return BadRequest();
            }

            db.Entry(workspace).State = EntityState.Modified;

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!WorkspaceExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public async Task<IHttpActionResult> PostWorkspace(Workspace workspace)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.Workspaces.Add(workspace);
            await db.SaveChangesAsync();

            return CreatedAtRoute("DefaultApi", new { id = workspace.WorkspaceId }, workspace);
        }