public IHttpActionResult DeleteArticle(int articleid) { if (_bll.DeleteArticle(articleid)) { return(Ok()); } return(InternalServerError()); }
public IActionResult Delete(int id) { var result = _articleBll.DeleteArticle(id); return(Ok(new { result })); }