Fix build break

- no need to call (`internal`) `html.GenerateId()` method since it matches `html.Id()` exactly
- no need for `.ToString()` with either method since they return `string` now
This commit is contained in:
dougbu 2014-08-01 22:07:38 -07:00
parent a379593746
commit 641816fd9b
2 changed files with 1 additions and 6 deletions

View File

@ -239,7 +239,7 @@ namespace Microsoft.AspNet.Mvc.Rendering
var displayFieldNameParts = displayFieldName.Split('.');
displayFieldName = displayFieldNameParts[displayFieldNameParts.Length - 1];
tag.Attributes["id"] = helper.GetFullHtmlFieldId(propertyExpressionText).ToString();
tag.Attributes["id"] = html.Id(propertyExpressionText);
tag.Attributes["name"] = valueFieldName;
tag.Attributes["ng-model"] = valueFieldName;

View File

@ -26,10 +26,5 @@ namespace Microsoft.AspNet.Mvc.Rendering
{
return GetClientValidationRules(metadata, name);
}
public HtmlString GetFullHtmlFieldId(string expression)
{
return GenerateId(expression);
}
}
}