public BuildControllerFromType ( |
||
type | ||
return | string |
public string BuildControllerFromType(Type type)
{
int indexOfControllers = type.Namespace.LastIndexOf("Controllers.");
var key = type.Namespace.Substring(indexOfControllers + 12);
return key;
}