Exemple #1
0
 public IHttpActionResult DeleteArticle(int articleid)
 {
     if (_bll.DeleteArticle(articleid))
     {
         return(Ok());
     }
     return(InternalServerError());
 }
Exemple #2
0
        public IActionResult Delete(int id)
        {
            var result = _articleBll.DeleteArticle(id);

            return(Ok(new { result }));
        }