Skip to content

Instantly share code, notes, and snippets.

View hidegh's full-sized avatar

balazs HIDEGHETY hidegh

View GitHub Profile
public class BankingDetails
{
public string AccountNumber { get; set; }
public string RoutingTransitNumber { get; set; }
}
public static MvcHtmlString PartialFor<TModel, TProperty>(
this HtmlHelper<TModel> helper,
System.Linq.Expressions.Expression<Func<TModel, TProperty>> expression,
string partialViewName,
Dictionary<string, object> additionalViewData = null
)
{
// Get model value from expression
string name = ExpressionHelper.GetExpressionText(expression);