private static void InjectModelId(this ViewDataDictionary viewDataDictionary, object model) { if ((model as TableEntity) != null) { var tableModel = model as TableEntity; viewDataDictionary.AddUnique("EntityId", tableModel.PartitionKey); } }
private static void InjectModelId(this ViewDataDictionary viewDataDictionary, object model) { if ((model as TableEntity) != null) { var tableModel = model as TableEntity; viewDataDictionary.AddUnique("EntityId", tableModel.PartitionKey); } }