C# Rest API Abstract Classes