Inside a view I'm trying to use variable created from my own class,
My class code :
public class STG_Route
{
public const string INDEX = "STG";
public const string ADD = "STG/Add";
public const string SHOW = "STG/Show";
public const string PROFILE = "STG/{CODE}";
}
My view code :
@{
MyNameSpace.BL.TXT_and_ROUTE.Route.STG_Route Route = new MyNameSpace.BL.TXT_and_ROUTE.Route.STG_Route();
}
<td><a href="/Admin/@Route.INDEX"><button type="button" class="btn bg-blue btn-block btn-sm waves-effect">xxx</button></a></td>
But this gave me errors, please any help?