Sample C# solution for a 3 tier architecture