@using System.Configuration

@if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["AgencyName"]))
{
    <text>Mileage Traker - @ConfigurationManager.AppSettings["AgencyName"] - @ViewBag.Title</text>
}
else
{ 
    <text>Mileage Traker - @ViewBag.Title</text>
}