Exemple #1
0
        public IActionResult PublishSocialList(string id)
        {
            var isPublished = _manager.Publish(id);

            if (isPublished == null)
            {
                return(NotFound(new ErrorResponse(404, $"List with id '{id}' could not be found.")));
            }
            else if (isPublished == false)
            {
                return(StatusCode(500));
            }
            else
            {
                return(NoContent());
            }
        }