Пример #1
0
 public bool Create(Article entity)
 {
     entity.IsActive   = true;
     entity.CreateDate = DateTime.Now;
     ValidationOfArticle(entity);
     return(_articleDAL.Create(entity) > 0);
 }
Пример #2
0
        public IActionResult Create(Article article)
        {
            IArticleDAL dal = ArticleFactory.GetArticleDAL();

            dal.Create(article);
            return(Accepted());
        }