21 lines
456 B
C#
21 lines
456 B
C#
using System.Collections.Generic;
|
|
using ChronoFlow.Model;
|
|
|
|
namespace ChronoFlow.Controller
|
|
{
|
|
public class ZeiterfassungsController
|
|
{
|
|
private readonly List<Zeiteintrag> _eintraege = new();
|
|
|
|
public void SpeichereEintrag(Zeiteintrag eintrag)
|
|
{
|
|
_eintraege.Add(eintrag);
|
|
}
|
|
|
|
public List<Zeiteintrag> LadeAlleEintraege()
|
|
{
|
|
return new List<Zeiteintrag>(_eintraege);
|
|
}
|
|
}
|
|
}
|