public void Update( int id ) { BlogSysCategory c = categoryService.GetById( id ); if (c == null) { echoRedirect( lang( "exDataNotFound" ) ); return; } c = validate( c ); if (ctx.HasErrors) { run( Edit, id ); return; } db.update( c ); log( SiteLogString.UpdateBlogSysCategory(), c ); echoToParentPart( lang( "opok" ) ); }