Beispiel #1
0
 public ActionResult Delete(KNGNewsVm bind)
 {
     if (this.ModelState.IsValid)
     {
         this.service.DeleteNews(bind.Id);
         return(this.RedirectToAction("All"));
     }
     return(this.View());
 }
Beispiel #2
0
        public ActionResult Delete(int id)
        {
            KNGNewsVm deleteNews = this.service.GetNewsBy(id);

            return(this.View(deleteNews));
        }