예제 #1
0
        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"));
        }
예제 #2
0
 public IHttpActionResult Delete(int id)
 {
     _zoneService.Delete(id);
     return(Ok());
 }