private static string GetViewNameFromModel(dynamic model) { return Regex.Replace(model.GetType().Name, "Model$", string.Empty); }