private void CheckTrenere()
	{
		var treneri = service.GetTrenere();
		if (treneri.Count == 0)
		{
			for (int i = 0; i < 3; i++)
			{
				service.CreateTrener(new Trener
				{
					FullName = $"Trener {GetLetter(i)}",
					Role = 2
				});
			}
		}
	}
예제 #2
0
	/// 
	/// <param name="trener"></param>
	public string CreateTrener(Trener trener, IDBService service){

		return service.CreateTrener(trener);
	}