Update ResourceController.cs