public void Delete(int id) { PhotoSysCategory c = categoryService.GetById(id); if (c == null) { echoRedirect(lang("exDataNotFound")); return; } db.delete(c); log(SiteLogString.DeletePhotoSysCategory(), c); redirect(List); }