There could be a major cleanup of the action code if the webutilities class exposes methods that perform a given action via a delegate/lambda, validate session information, and handle the exception handling (custom exception handling could be passed in, as well, via lambdas). This could clear up the duplicated code all over the place for handling 500 errors and 403 errors.
There could be a major cleanup of the action code if the webutilities class exposes methods that perform a given action via a delegate/lambda, validate session information, and handle the exception handling (custom exception handling could be passed in, as well, via lambdas). This could clear up the duplicated code all over the place for handling 500 errors and 403 errors.