public ActionResult AddOutline([FromBody] OutlineModel outline)
        {
            _logger.LogInformation("Adding a new Outline");

            outline.LastUpdate = DateTime.UtcNow;
            var outlineData = OutlineMapper.SerializeOutline(outline);
            var newOutline  = _outlineService.CreateOutline(outlineData);

            return(Ok(newOutline));
        }
        public ActionResult UpdateOutline([FromBody] OutlineModel outline)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            outline.LastUpdate = DateTime.UtcNow;
            var outlineData = OutlineMapper.SerializeOutline(outline);
            var newOutline  = _outlineService.UpdateOutline(outlineData);

            return(Ok(newOutline));
        }