All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 10m12s
17 lines
541 B
C#
17 lines
541 B
C#
namespace Domain.Constants
|
|
{
|
|
public static class ExpeditionStatusExtensions
|
|
{
|
|
public static string ToLabel(this ExpeditionStatus e) => e switch
|
|
{
|
|
ExpeditionStatus.Emitida => "Emitida",
|
|
ExpeditionStatus.EnTransito => "En tránsito",
|
|
ExpeditionStatus.EnDestino => "En destino",
|
|
ExpeditionStatus.Retorno => "Retorno",
|
|
ExpeditionStatus.Cerrada => "Cerrada",
|
|
ExpeditionStatus.Anulada => "Anulada",
|
|
_ => e.ToString()
|
|
};
|
|
}
|
|
}
|