Vehicle Recall integrated into Vehicle Service
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user