public IActionResult Details(Article article) { Article article1 = _articleRepo.NameExists(article.HeadLine); if (article1 == null) { return(NotFound("Something went wrong")); } return(View(article1)); }
public IActionResult Details(Article article) { Article article1 = _articleRepo.NameExists(article.HeadLine); if (article1 == null) { return(NotFound("Something went wrong")); } return(View(article1)); }