@@ -67,9 +67,8 @@ public IViewEngine ViewEngine
67
67
{
68
68
if ( _viewEngine == null )
69
69
{
70
- _viewEngine = ActionContext ? .
71
- HttpContext ? .
72
- RequestServices . GetRequiredService < ICompositeViewEngine > ( ) ;
70
+ _viewEngine =
71
+ ActionContext ? . HttpContext ? . RequestServices . GetRequiredService < ICompositeViewEngine > ( ) ;
73
72
}
74
73
75
74
return _viewEngine ;
@@ -797,7 +796,7 @@ public virtual async Task OnActionExecutionAsync(
797
796
}
798
797
799
798
/// <summary>
800
- /// Updates the specified <paramref name="model"/> instance using values from the controller's current
799
+ /// Updates the specified <paramref name="model"/> instance using values from the controller's current
801
800
/// <see cref="IValueProvider"/>.
802
801
/// </summary>
803
802
/// <typeparam name="TModel">The type of the model object.</typeparam>
@@ -811,7 +810,7 @@ public virtual Task<bool> TryUpdateModelAsync<TModel>([NotNull] TModel model)
811
810
}
812
811
813
812
/// <summary>
814
- /// Updates the specified <paramref name="model"/> instance using values from the controller's current
813
+ /// Updates the specified <paramref name="model"/> instance using values from the controller's current
815
814
/// <see cref="IValueProvider"/> and a <paramref name="prefix"/>.
816
815
/// </summary>
817
816
/// <typeparam name="TModel">The type of the model object.</typeparam>
@@ -826,7 +825,7 @@ public virtual async Task<bool> TryUpdateModelAsync<TModel>([NotNull] TModel mod
826
825
{
827
826
if ( BindingContextProvider == null )
828
827
{
829
- var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
828
+ var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
830
829
GetType ( ) . FullName ) ;
831
830
throw new InvalidOperationException ( message ) ;
832
831
}
@@ -836,7 +835,7 @@ public virtual async Task<bool> TryUpdateModelAsync<TModel>([NotNull] TModel mod
836
835
}
837
836
838
837
/// <summary>
839
- /// Updates the specified <paramref name="model"/> instance using the <paramref name="valueProvider"/> and a
838
+ /// Updates the specified <paramref name="model"/> instance using the <paramref name="valueProvider"/> and a
840
839
/// <paramref name="prefix"/>.
841
840
/// </summary>
842
841
/// <typeparam name="TModel">The type of the model object.</typeparam>
@@ -853,7 +852,7 @@ public virtual async Task<bool> TryUpdateModelAsync<TModel>([NotNull] TModel mod
853
852
{
854
853
if ( BindingContextProvider == null )
855
854
{
856
- var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
855
+ var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
857
856
GetType ( ) . FullName ) ;
858
857
throw new InvalidOperationException ( message ) ;
859
858
}
@@ -870,14 +869,14 @@ public virtual async Task<bool> TryUpdateModelAsync<TModel>([NotNull] TModel mod
870
869
}
871
870
872
871
/// <summary>
873
- /// Updates the specified <paramref name="model"/> instance using values from the controller's current
872
+ /// Updates the specified <paramref name="model"/> instance using values from the controller's current
874
873
/// <see cref="IValueProvider"/> and a <paramref name="prefix"/>.
875
874
/// </summary>
876
875
/// <typeparam name="TModel">The type of the model object.</typeparam>
877
876
/// <param name="model">The model instance to update.</param>
878
877
/// <param name="prefix">The prefix to use when looking up values in the current <see cref="IValueProvider"/>.
879
878
/// </param>
880
- /// <param name="includeExpressions"> <see cref="Expression"/>(s) which represent top-level properties
879
+ /// <param name="includeExpressions"> <see cref="Expression"/>(s) which represent top-level properties
881
880
/// which need to be included for the current model.</param>
882
881
/// <returns>A <see cref="Task"/> that on completion returns <c>true</c> if the update is successful</returns>
883
882
[ NonAction ]
@@ -907,7 +906,7 @@ public async Task<bool> TryUpdateModelAsync<TModel>(
907
906
}
908
907
909
908
/// <summary>
910
- /// Updates the specified <paramref name="model"/> instance using values from the controller's current
909
+ /// Updates the specified <paramref name="model"/> instance using values from the controller's current
911
910
/// <see cref="IValueProvider"/> and a <paramref name="prefix"/>.
912
911
/// </summary>
913
912
/// <typeparam name="TModel">The type of the model object.</typeparam>
@@ -925,7 +924,7 @@ public async Task<bool> TryUpdateModelAsync<TModel>(
925
924
{
926
925
if ( BindingContextProvider == null )
927
926
{
928
- var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
927
+ var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
929
928
GetType ( ) . FullName ) ;
930
929
throw new InvalidOperationException ( message ) ;
931
930
}
@@ -943,15 +942,15 @@ public async Task<bool> TryUpdateModelAsync<TModel>(
943
942
}
944
943
945
944
/// <summary>
946
- /// Updates the specified <paramref name="model"/> instance using the <paramref name="valueProvider"/> and a
945
+ /// Updates the specified <paramref name="model"/> instance using the <paramref name="valueProvider"/> and a
947
946
/// <paramref name="prefix"/>.
948
947
/// </summary>
949
948
/// <typeparam name="TModel">The type of the model object.</typeparam>
950
949
/// <param name="model">The model instance to update.</param>
951
950
/// <param name="prefix">The prefix to use when looking up values in the <paramref name="valueProvider"/>
952
951
/// </param>
953
952
/// <param name="valueProvider">The <see cref="IValueProvider"/> used for looking up values.</param>
954
- /// <param name="includeExpressions"> <see cref="Expression"/>(s) which represent top-level properties
953
+ /// <param name="includeExpressions"> <see cref="Expression"/>(s) which represent top-level properties
955
954
/// which need to be included for the current model.</param>
956
955
/// <returns>A <see cref="Task"/> that on completion returns <c>true</c> if the update is successful</returns>
957
956
[ NonAction ]
@@ -964,7 +963,7 @@ public async Task<bool> TryUpdateModelAsync<TModel>(
964
963
{
965
964
if ( BindingContextProvider == null )
966
965
{
967
- var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
966
+ var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
968
967
GetType ( ) . FullName ) ;
969
968
throw new InvalidOperationException ( message ) ;
970
969
}
@@ -982,7 +981,7 @@ public async Task<bool> TryUpdateModelAsync<TModel>(
982
981
}
983
982
984
983
/// <summary>
985
- /// Updates the specified <paramref name="model"/> instance using the <paramref name="valueProvider"/> and a
984
+ /// Updates the specified <paramref name="model"/> instance using the <paramref name="valueProvider"/> and a
986
985
/// <paramref name="prefix"/>.
987
986
/// </summary>
988
987
/// <typeparam name="TModel">The type of the model object.</typeparam>
@@ -1002,7 +1001,7 @@ public async Task<bool> TryUpdateModelAsync<TModel>(
1002
1001
{
1003
1002
if ( BindingContextProvider == null )
1004
1003
{
1005
- var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
1004
+ var message = Resources . FormatPropertyOfTypeCannotBeNull ( nameof ( BindingContextProvider ) ,
1006
1005
GetType ( ) . FullName ) ;
1007
1006
throw new InvalidOperationException ( message ) ;
1008
1007
}
0 commit comments