mirror of
https://git.battle-of-pip.de/root/vpr-mitarbeiterverwaltung.git
synced 2025-06-21 00:03:18 +02:00
21 lines
432 B
C#
21 lines
432 B
C#
namespace Library;
|
|
|
|
public enum EmployeeState
|
|
{
|
|
OUT,
|
|
IN,
|
|
BREAK,
|
|
}
|
|
public static class EmployeeStateExtensions
|
|
{
|
|
public static string ToFriendlyString(this EmployeeState state)
|
|
{
|
|
return state switch
|
|
{
|
|
EmployeeState.OUT => "Clocked Out",
|
|
EmployeeState.IN => "Clocked In",
|
|
EmployeeState.BREAK => "On Break",
|
|
_ => state.ToString()
|
|
};
|
|
}
|
|
} |