Esempio n. 1
0
        public ActionResult Add(Article endity)
        {
            endity.AddDate = DateTime.Now;

            var ezine = articleRepository.AddArticle(endity);
            if (ezine)
            {
                return View("Index");
            }
            else
            {
                return View();
            }
        }
Esempio n. 2
0
 public ActionResult Update(Article endity)
 {
     var ezine = articleRepository.UpdateArticle(endity);
     if (ezine)
     {
         return View("Index");
     }
     else
     {
         return View();
     }
 }