public ActionResult Add(Article endity) { endity.AddDate = DateTime.Now; var ezine = articleRepository.AddArticle(endity); if (ezine) { return View("Index"); } else { return View(); } }
public ActionResult Update(Article endity) { var ezine = articleRepository.UpdateArticle(endity); if (ezine) { return View("Index"); } else { return View(); } }