Frontend C# Code