public void Delete(BlogPost post)
        {
            var toDelete = GetById(post.Id);

            if (toDelete != null)
            {
                _blogPosts.Remove(toDelete);
            }
        }
        public void Edit(BlogPost post)
        {
            var oldPost = GetById(post.Id);

            if (oldPost == null)
            {
                return;
            }

            oldPost.Title = post.Title;
            oldPost.Content = post.Content;
        }