Esempio n. 1
0
        public void DeleteArticle(int id)
        {
            var article = GetArticleById(id);

            _articleDal.Delete(new Entities.Concrete.Article {
                Id = article.Result.Id
            });
        }
Esempio n. 2
0
 public bool Delete(Article article)
 {
     try
     {
         _articleDal.Delete(article);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public IActionResult Delete(int id)
 {
     try
     {
         _articleDal.Delete(new ArticleInfo {
             Id = id
         });
         return(Ok());
     }
     catch
     {
         return(BadRequest());
     }
 }
Esempio n. 4
0
 public void Delete(Article entity)
 {
     _articleDal.Delete(entity);
 }
 public IResult Delete(Article article)
 {
     _articleDal.Delete(article);
     return(new SuccessResult(ArticleMessage.ArticleDeleted));
 }
Esempio n. 6
0
 public void DeleteArticle(Article article)
 {
     _articleDal.Delete(article);
 }
Esempio n. 7
0
 public IResult Delete(Article article)
 {
     _articleDal.Delete(article);
     return(new SuccessResult("Ürün başarıyla silindi"));
 }
Esempio n. 8
0
 //[SecuredOperation("author,admin,moderator")]
 public IResult ArticleDelete(Article article)
 {
     _articleDal.Delete(article);
     return(new SuccessResult(Messages.SuccessDeleted));
 }
Esempio n. 9
0
 public string Delete(Article article)
 {
     _IArticleDal.Delete(article);
     return("Makale başarıyla silindi");
 }
 public void Delete(int articleId)
 {
     _articleDal.Delete(new Article {
         ArticleId = articleId
     });
 }
Esempio n. 11
0
 public IResult Delete(Article article)
 {
     _articleDal.Delete(article);
     return(new SuccessResult("Your Article successfull deleted"));
 }
        public void Delete(int articleId)
        {
            var article = _articleDal.Get(i => i.Id == articleId);

            _articleDal.Delete(article);
        }