public ActionResult Delete(int id) { var testimonials = testimonialsService.GetById(id); if (testimonials == null) { this.NotifyError("Item not found."); return(RedirectToAction("List")); } else { var deleted = testimonialsService.Delete(testimonials); if (deleted) { this.NotifySuccess("Successfully deleted."); } else { this.NotifyError("Item can not deleted!"); } } return(RedirectToAction("List")); }