public void DeleteArticle(int id) { var article = GetArticleById(id); _articleDal.Delete(new Entities.Concrete.Article { Id = article.Result.Id }); }
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()); } }
public void Delete(Article entity) { _articleDal.Delete(entity); }
public IResult Delete(Article article) { _articleDal.Delete(article); return(new SuccessResult(ArticleMessage.ArticleDeleted)); }
public void DeleteArticle(Article article) { _articleDal.Delete(article); }
public IResult Delete(Article article) { _articleDal.Delete(article); return(new SuccessResult("Ürün başarıyla silindi")); }
//[SecuredOperation("author,admin,moderator")] public IResult ArticleDelete(Article article) { _articleDal.Delete(article); return(new SuccessResult(Messages.SuccessDeleted)); }
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 }); }
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); }