From 27aae3d08a6ec44daf9c8d0cba452ee35a2fd217 Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Tue, 28 Jun 2016 16:44:11 +0200 Subject: [PATCH] Helper for Getting Names of MissionTypes --- VectoCore/VectoCore/Models/Declaration/MissionType.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/VectoCore/VectoCore/Models/Declaration/MissionType.cs b/VectoCore/VectoCore/Models/Declaration/MissionType.cs index b7e5a953c9..8ccc72b7b9 100644 --- a/VectoCore/VectoCore/Models/Declaration/MissionType.cs +++ b/VectoCore/VectoCore/Models/Declaration/MissionType.cs @@ -44,4 +44,12 @@ namespace TUGraz.VectoCore.Models.Declaration Interurban, Coach } + + public static class MissionTypeHelper + { + public static string GetName(this MissionType self) + { + return self.ToString().ToLowerInvariant(); + } + } } \ No newline at end of file -- GitLab