public IHttpActionResult PutParkingBuilding(int id, ParkingBuilding parkingBuilding)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

            try
            {
                rep.Update(id, parkingBuilding);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!rep.ParkingBuildingExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostParkingBuilding(ParkingBuilding parkingBuilding)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            rep.Add(parkingBuilding);

            return CreatedAtRoute("DefaultApi", new { id = parkingBuilding.Id }, parkingBuilding);
        }