public HttpResponseMessage Delete(int id) { SucessResponse response = new SucessResponse(); _TestimonialsService.Delete(id); return(Request.CreateResponse(response)); }
public ActionResult Delete(int id) { try { _testimonialsService.Delete(id); return(Json(GetJson(Resources.DeleteSuccess, Enums.NotifyType.Success), JsonRequestBehavior.AllowGet)); } catch (Exception e) { Logger.log.Error($"Testimonials > KendoDestroy. Error: {e.Message}"); return(Json(GetJson(Resources.DeleteFailed, Enums.NotifyType.Error), JsonRequestBehavior.AllowGet)); } }