Vehicle Recall integrated into Vehicle Service

This commit is contained in:
2020-09-30 21:44:38 -04:00
parent 6f031c5cb6
commit 4b44128d62
18 changed files with 236 additions and 126 deletions
+13 -4
View File
@@ -1,4 +1,5 @@
using System.Web.Mvc;
using System.Linq;
using System.Web.Mvc;
namespace MileageTraker.Web.ViewModels
{
@@ -9,7 +10,15 @@ namespace MileageTraker.Web.ViewModels
public override string ToString()
{
return Selected.ToString();
}
}
if (Selected > 0)
{
var selected = Available.FirstOrDefault(i => i.Value == Selected.ToString());
if (selected != null)
{
return selected.Text;
}
}
return string.Empty;
}
}
}