public async Task<IHttpActionResult> PutClient(int id, Client client)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != client.Id)
            {
                return BadRequest();
            }

            _db.Entry(client).State = EntityState.Modified;

            try
            {
                await _db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!ClientExists(id))
                {
                    return NotFound();
                }
                throw;
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public async Task<IHttpActionResult> PostClient(Client client)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            _db.Clients.Add(client);
            await _db.SaveChangesAsync();

            return CreatedAtRoute("DefaultApi", new
            {
                id = client.Id
            }, client);
        }
        private static void Seed(SwashbuckleODataContext context)
        {
            var clientOne = new Client { Id = 1, Name = "ClientOne" };
            context.Clients.Add(clientOne);
            context.Clients.Add(new Client { Id = 2, Name = "ClientTwo" });

            context.Projects.Add(new Project { ProjectId = 1, ProjectName = "ProjectOne", Client = clientOne });
            context.Projects.Add(new Project { ProjectId = 2, ProjectName = "ProjectTwo", Client = clientOne });

            var customerOne = new Customer { Id = 1, Name = "CustomerOne" };
            context.Customers.Add(customerOne);
            context.Customers.Add(new Customer { Id = 2, Name = "CustomerTwo" });

            context.Orders.Add(new Order { OrderId = SequentialGuidGenerator.Generate(SequentialGuidType.SequentialAtEnd), OrderName = "OrderOne", Customer = customerOne, UnitPrice = 4.0 });
            context.Orders.Add(new Order { OrderId = SequentialGuidGenerator.Generate(SequentialGuidType.SequentialAtEnd), OrderName = "OrderTwo", Customer = customerOne, UnitPrice = 3.5 });
        }