public async Task<IHttpActionResult> PostServicesForDetailsPage(ServicesForDetailsPage servicesForDetailsPage)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.ServicesForDetailsPages.Add(servicesForDetailsPage);

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (ServicesForDetailsPageExists(servicesForDetailsPage.ServiceID))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

            return CreatedAtRoute("DefaultApi", new { id = servicesForDetailsPage.ServiceID }, servicesForDetailsPage);
        }
        public async Task<IHttpActionResult> PutServicesForDetailsPage(int id, ServicesForDetailsPage servicesForDetailsPage)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != servicesForDetailsPage.ServiceID)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }