public async Task <HttpStatusCodeResult> EditBackgroundColour(EditBackgroundColourViewModel model)
        {
            try
            {
                await _sectionService.EditBackgroundTypeAsync(model.PageSectionId, false);

                await _sectionService.EditBackgroundColourAsync(model.PageSectionId, model.BackgroundColour);

                return(new HttpStatusCodeResult(HttpStatusCode.NoContent));
            }
            catch (Exception)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.InternalServerError));
            }
        }
        public async Task <ActionResult> EditBackgroundColour(int pageAssociationId)
        {
            var pageAssociation = await _associationService.GetAsync(pageAssociationId);

            var pageSection = await _sectionService.GetAsync(pageAssociation.PageSection.PageSectionId);

            var model = new EditBackgroundColourViewModel
            {
                PageAssociationId = pageAssociationId,
                PageSectionId     = pageSection.PageSectionId,
                BackgroundColour  = await _sectionService.DetermineBackgroundColourAsync(pageSection.PageSectionId),
            };

            return(PartialView("_EditBackgroundColour", model));
        }