Severity Code Description Project File Line Suppression State Error CS0103 The name 'Encoding' does not exist in the current context

The error indicates that the Encoding class is not recognized in the current context.

To resolve this issue, you need to include the System.Text namespace in your controller or class.

Please add the following using directive at the top of your controller file:

using System.Text;

This will import the necessary namespace and allow you to use the Encoding class for encoding and decoding purposes.