public ActionResult Delete(int id) { if (!CheckPermission(WidgetPermissions.ManageWidgets)) { return(new HttpUnauthorizedResult()); } var zone = zoneService.GetById(id); zoneService.Delete(zone); return(new AjaxResult().NotifyMessage("DELETE_ENTITY_COMPLETE")); }
public IHttpActionResult Delete(int id) { _zoneService.Delete(id); return(Ok()); }