public int Create(Article article)
        {
            this.articles.Add(article);

            this.articles.Save();

            return article.Id;
        }
        public void Update(int id, Article article)
        {
            var entityToUpdate = this.articles.GetById(id);

            entityToUpdate.Title = article.Title;
            entityToUpdate.Description = article.Description;
            entityToUpdate.Images = article.Images;
            entityToUpdate.Type = article.Type;

            this.articles.Save();
        }
        public int Create(string title, string description, string authorId)
        {
            var newEntity = new Article()
            {
                Title = title,
                Description = description,
                AuthorId = authorId
            };

            this.articles.Add(newEntity);

            this.articles.Save();

            return newEntity.Id;
        }