BlazorApp/Bullet6/Solution2/Solution2Service.cs

17 lines
526 B
C#

using Bullet6.Solution2.Models;
namespace Bullet6.Solution2
{
public class Solution2Service : ISolution2Service
{
public Task Start()
{
Console.WriteLine($"{nameof(Solution2Service)} starting");
Entity[] entites = [new Employee() { Name = "Ilias" }, new Manager() { Name = "Maria" }];
foreach (var entity in entites) entity.PrintName();
Console.WriteLine($"{nameof(Solution2Service)} ended");
return Task.CompletedTask;
}
}
}