Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using DAL.Model.BaseModel;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace DAL.Model.BaseModel
- {
- public static class Extensions
- {
- public static string Name(this AbsenceType state)
- {
- switch (state)
- {
- case AbsenceType.Late:
- return "Atraso";
- case AbsenceType.Presence:
- return "Presença";
- case AbsenceType.Material:
- return "Material";
- case AbsenceType.BadBehaviour:
- return "Mau Comportamento";
- }
- return null;
- }
- public static string Name(this AbsenceState state)
- {
- switch (state)
- {
- case AbsenceState.Sent:
- return "Enviado";
- case AbsenceState.Seen:
- return "Visto";
- case AbsenceState.Justified:
- return "Justificado";
- }
- return null;
- }
- public static string Name(this ErrandState state)
- {
- switch (state)
- {
- case ErrandState.Sent:
- return "Enviado";
- case ErrandState.Seen:
- return "Visto";
- case ErrandState.Signed:
- return "Assinado";
- }
- return null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement