The SxcApiController was the old base class for WebApi Controllers in 2sxc up to 10.25. Now you should use the new ApiController.
- Change to inherit from
ToSic.Sxc.Dnn.
ApiController
So change public class YourController: SxcApiController
to
public class YourController: ToSic.Sxc.Dnn.ApiController
- Change any
AsDynamic(someList)
to AsList(someList)
- If you were using
Serializer.Prepare(someList)
now use DataToDictionary(Edit.Enabled).Convert(someList)
instead
- Follow the other recommendations in the RazorComponent recipe