public static void SetRoutType <T>(ViewDataDictionary <T> viewData, RoutType routType) { viewData["routType"] = routType; viewData["Title"] = routType.ToString(); }
public static bool CheckRout(ViewDataDictionary <dynamic> viewData, RoutType routType) { return((RoutType)viewData["routType"] == routType); }