// GET: /News/Delete/5 public ActionResult Delete(int id = 0) { NewsUserViewModel news = _businessNews.DeleteNews(id); if (news == null) { return(HttpNotFound()); } return(View(news)); }
public int Delete(int newsid) { if (newsid != 0) { var result = business.DeleteNews(newsid); return(result); } else { return(0); } }
public ActionResult EditingNews_Destroy(long Id) { _newsBusiness.DeleteNews(Id); return(Content("")); }