@@ -217,7 +217,7 @@ public virtual ContentResult Content(string content)
217
217
=> Content ( content , ( MediaTypeHeaderValue ) null ) ;
218
218
219
219
/// <summary>
220
- /// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
220
+ /// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
221
221
/// <paramref name="content"/> string and a content type.
222
222
/// </summary>
223
223
/// <param name="content">The content to write to the response.</param>
@@ -227,7 +227,7 @@ public virtual ContentResult Content(string content, string contentType)
227
227
=> Content ( content , MediaTypeHeaderValue . Parse ( contentType ) ) ;
228
228
229
229
/// <summary>
230
- /// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
230
+ /// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
231
231
/// <paramref name="content"/> string, a <paramref name="contentType"/>, and <paramref name="contentEncoding"/>.
232
232
/// </summary>
233
233
/// <param name="content">The content to write to the response.</param>
@@ -246,7 +246,7 @@ public virtual ContentResult Content(string content, string contentType, Encodin
246
246
}
247
247
248
248
/// <summary>
249
- /// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
249
+ /// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
250
250
/// <paramref name="content"/> string and a <paramref name="contentType"/>.
251
251
/// </summary>
252
252
/// <param name="content">The content to write to the response.</param>
@@ -293,14 +293,14 @@ public virtual ForbidResult Forbid(params string[] authenticationSchemes)
293
293
/// challenge.</param>
294
294
/// <returns>The created <see cref="ForbidResult"/> for the response.</returns>
295
295
/// <remarks>
296
- /// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
296
+ /// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
297
297
/// a redirect to show a login page.
298
298
/// </remarks>
299
299
public virtual ForbidResult Forbid ( AuthenticationProperties properties )
300
300
=> new ForbidResult ( properties ) ;
301
301
302
302
/// <summary>
303
- /// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
303
+ /// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the
304
304
/// specified authentication schemes and <paramref name="properties" />.
305
305
/// </summary>
306
306
/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication
@@ -406,7 +406,7 @@ public virtual PhysicalFileResult PhysicalFile(
406
406
=> new PhysicalFileResult ( physicalPath , contentType ) { FileDownloadName = fileDownloadName } ;
407
407
408
408
/// <summary>
409
- /// Creates a <see cref="LocalRedirectResult"/> object that redirects
409
+ /// Creates a <see cref="LocalRedirectResult"/> object that redirects
410
410
/// (<see cref="StatusCodes.Status302Found"/>) to the specified local <paramref name="localUrl"/>.
411
411
/// </summary>
412
412
/// <param name="localUrl">The local URL to redirect to.</param>
@@ -439,7 +439,7 @@ public virtual LocalRedirectResult LocalRedirectPermanent(string localUrl)
439
439
440
440
/// <summary>
441
441
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.Permanent"/> set to
442
- /// false and <see cref="LocalRedirectResult.PreserveMethod"/> set to true
442
+ /// false and <see cref="LocalRedirectResult.PreserveMethod"/> set to true
443
443
/// (<see cref="StatusCodes.Status307TemporaryRedirect"/>) using the specified <paramref name="localUrl"/>.
444
444
/// </summary>
445
445
/// <param name="localUrl">The local URL to redirect to.</param>
@@ -456,7 +456,7 @@ public virtual LocalRedirectResult LocalRedirectPreserveMethod(string localUrl)
456
456
457
457
/// <summary>
458
458
/// Creates a <see cref="LocalRedirectResult"/> object with <see cref="LocalRedirectResult.Permanent"/> set to
459
- /// true and <see cref="LocalRedirectResult.PreserveMethod"/> set to true
459
+ /// true and <see cref="LocalRedirectResult.PreserveMethod"/> set to true
460
460
/// (<see cref="StatusCodes.Status308PermanentRedirect"/>) using the specified <paramref name="localUrl"/>.
461
461
/// </summary>
462
462
/// <param name="localUrl">The local URL to redirect to.</param>
@@ -528,7 +528,7 @@ public virtual RedirectResult RedirectPermanent(string url)
528
528
529
529
/// <summary>
530
530
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to false
531
- /// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>)
531
+ /// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>)
532
532
/// using the specified <paramref name="url"/>.
533
533
/// </summary>
534
534
/// <param name="url">The URL to redirect to.</param>
@@ -545,7 +545,7 @@ public virtual RedirectResult RedirectPreserveMethod(string url)
545
545
546
546
/// <summary>
547
547
/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to true
548
- /// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>)
548
+ /// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>)
549
549
/// using the specified <paramref name="url"/>.
550
550
/// </summary>
551
551
/// <param name="url">The URL to redirect to.</param>
@@ -569,7 +569,7 @@ public virtual RedirectToActionResult RedirectToAction(string actionName)
569
569
=> RedirectToAction ( actionName , routeValues : null ) ;
570
570
571
571
/// <summary>
572
- /// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
572
+ /// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
573
573
/// <paramref name="actionName"/> and <paramref name="routeValues"/>.
574
574
/// </summary>
575
575
/// <param name="actionName">The name of the action.</param>
@@ -579,7 +579,7 @@ public virtual RedirectToActionResult RedirectToAction(string actionName, object
579
579
=> RedirectToAction ( actionName , controllerName : null , routeValues : routeValues ) ;
580
580
581
581
/// <summary>
582
- /// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
582
+ /// Redirects (<see cref="StatusCodes.Status302Found"/>) to the specified action using the
583
583
/// <paramref name="actionName"/> and the <paramref name="controllerName"/>.
584
584
/// </summary>
585
585
/// <param name="actionName">The name of the action.</param>
@@ -633,15 +633,15 @@ public virtual RedirectToActionResult RedirectToAction(
633
633
=> new RedirectToActionResult ( actionName , controllerName , routeValues , fragment ) ;
634
634
635
635
/// <summary>
636
- /// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified action with
637
- /// <see cref="RedirectToActionResult.Permanent"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/>
638
- /// set to true, using the specified <paramref name="actionName"/>, <paramref name="controllerName"/>,
636
+ /// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified action with
637
+ /// <see cref="RedirectToActionResult.Permanent"/> set to false and <see cref="RedirectToActionResult.PreserveMethod"/>
638
+ /// set to true, using the specified <paramref name="actionName"/>, <paramref name="controllerName"/>,
639
639
/// <paramref name="routeValues"/>, and <paramref name="fragment"/>.
640
640
/// </summary>
641
641
/// <param name="actionName">The name of the action.</param>
642
642
/// <param name="controllerName">The name of the controller.</param>
643
643
/// <param name="routeValues">The route data to use for generating the URL.</param>
644
- /// <param name="fragment">The fragment to add to the URL.</param>
644
+ /// <param name="fragment">The fragment to add to the URL.</param>
645
645
/// <returns>The created <see cref="RedirectToActionResult"/> for the response.</returns>
646
646
public virtual RedirectToActionResult RedirectToActionPreserveMethod (
647
647
string actionName = null ,
@@ -659,7 +659,7 @@ public virtual RedirectToActionResult RedirectToActionPreserveMethod(
659
659
}
660
660
661
661
/// <summary>
662
- /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
662
+ /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
663
663
/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>.
664
664
/// </summary>
665
665
/// <param name="actionName">The name of the action.</param>
@@ -670,8 +670,8 @@ public virtual RedirectToActionResult RedirectToActionPermanent(string actionNam
670
670
}
671
671
672
672
/// <summary>
673
- /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
674
- /// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>
673
+ /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
674
+ /// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>
675
675
/// and <paramref name="routeValues"/>.
676
676
/// </summary>
677
677
/// <param name="actionName">The name of the action.</param>
@@ -683,8 +683,8 @@ public virtual RedirectToActionResult RedirectToActionPermanent(string actionNam
683
683
}
684
684
685
685
/// <summary>
686
- /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
687
- /// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>
686
+ /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
687
+ /// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>
688
688
/// and <paramref name="controllerName"/>.
689
689
/// </summary>
690
690
/// <param name="actionName">The name of the action.</param>
@@ -696,7 +696,7 @@ public virtual RedirectToActionResult RedirectToActionPermanent(string actionNam
696
696
}
697
697
698
698
/// <summary>
699
- /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
699
+ /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
700
700
/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>,
701
701
/// <paramref name="controllerName"/>, and <paramref name="fragment"/>.
702
702
/// </summary>
@@ -713,7 +713,7 @@ public virtual RedirectToActionResult RedirectToActionPermanent(
713
713
}
714
714
715
715
/// <summary>
716
- /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
716
+ /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
717
717
/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>,
718
718
/// <paramref name="controllerName"/>, and <paramref name="routeValues"/>.
719
719
/// </summary>
@@ -730,7 +730,7 @@ public virtual RedirectToActionResult RedirectToActionPermanent(
730
730
}
731
731
732
732
/// <summary>
733
- /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
733
+ /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified action with
734
734
/// <see cref="RedirectToActionResult.Permanent"/> set to true using the specified <paramref name="actionName"/>,
735
735
/// <paramref name="controllerName"/>, <paramref name="routeValues"/>, and <paramref name="fragment"/>.
736
736
/// </summary>
@@ -754,16 +754,16 @@ public virtual RedirectToActionResult RedirectToActionPermanent(
754
754
}
755
755
756
756
/// <summary>
757
- /// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified action with
757
+ /// Redirects (<see cref="StatusCodes.Status308PermanentRedirect"/>) to the specified action with
758
758
/// <see cref="RedirectToActionResult.Permanent"/> set to true and <see cref="RedirectToActionResult.PreserveMethod"/>
759
- /// set to true, using the specified <paramref name="actionName"/>, <paramref name="controllerName"/>,
759
+ /// set to true, using the specified <paramref name="actionName"/>, <paramref name="controllerName"/>,
760
760
/// <paramref name="routeValues"/>, and <paramref name="fragment"/>.
761
761
/// </summary>
762
762
/// <param name="actionName">The name of the action.</param>
763
763
/// <param name="controllerName">The name of the controller.</param>
764
764
/// <param name="routeValues">The route data to use for generating the URL.</param>
765
765
/// <param name="fragment">The fragment to add to the URL.</param>
766
- /// <returns>The created <see cref="RedirectToActionResult"/> for the response.</returns>
766
+ /// <returns>The created <see cref="RedirectToActionResult"/> for the response.</returns>
767
767
public virtual RedirectToActionResult RedirectToActionPermanentPreserveMethod (
768
768
string actionName = null ,
769
769
string controllerName = null ,
@@ -840,14 +840,14 @@ public virtual RedirectToRouteResult RedirectToRoute(
840
840
}
841
841
842
842
/// <summary>
843
- /// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified route with
843
+ /// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified route with
844
844
/// <see cref="RedirectToRouteResult.Permanent"/> set to false and <see cref="RedirectToRouteResult.PreserveMethod"/>
845
845
/// set to true, using the specified <paramref name="routeName"/>, <paramref name="routeValues"/>, and <paramref name="fragment"/>.
846
846
/// </summary>
847
847
/// <param name="routeName">The name of the route.</param>
848
848
/// <param name="routeValues">The route data to use for generating the URL.</param>
849
849
/// <param name="fragment">The fragment to add to the URL.</param>
850
- /// <returns>The created <see cref="RedirectToRouteResult"/> for the response.</returns>
850
+ /// <returns>The created <see cref="RedirectToRouteResult"/> for the response.</returns>
851
851
public virtual RedirectToRouteResult RedirectToRoutePreserveMethod (
852
852
string routeName = null ,
853
853
object routeValues = null ,
@@ -862,7 +862,7 @@ public virtual RedirectToRouteResult RedirectToRoutePreserveMethod(
862
862
}
863
863
864
864
/// <summary>
865
- /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
865
+ /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
866
866
/// <see cref="RedirectToRouteResult.Permanent"/> set to true using the specified <paramref name="routeName"/>.
867
867
/// </summary>
868
868
/// <param name="routeName">The name of the route.</param>
@@ -873,7 +873,7 @@ public virtual RedirectToRouteResult RedirectToRoutePermanent(string routeName)
873
873
}
874
874
875
875
/// <summary>
876
- /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
876
+ /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
877
877
/// <see cref="RedirectToRouteResult.Permanent"/> set to true using the specified <paramref name="routeValues"/>.
878
878
/// </summary>
879
879
/// <param name="routeValues">The parameters for a route.</param>
@@ -897,7 +897,7 @@ public virtual RedirectToRouteResult RedirectToRoutePermanent(string routeName,
897
897
}
898
898
899
899
/// <summary>
900
- /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
900
+ /// Redirects (<see cref="StatusCodes.Status301MovedPermanently"/>) to the specified route with
901
901
/// <see cref="RedirectToRouteResult.Permanent"/> set to true using the specified <paramref name="routeName"/>
902
902
/// and <paramref name="fragment"/>.
903
903
/// </summary>
@@ -932,7 +932,7 @@ public virtual RedirectToRouteResult RedirectToRoutePermanent(
932
932
/// <param name="routeName">The name of the route.</param>
933
933
/// <param name="routeValues">The route data to use for generating the URL.</param>
934
934
/// <param name="fragment">The fragment to add to the URL.</param>
935
- /// <returns>The created <see cref="RedirectToRouteResult"/> for the response.</returns>
935
+ /// <returns>The created <see cref="RedirectToRouteResult"/> for the response.</returns>
936
936
public virtual RedirectToRouteResult RedirectToRoutePermanentPreserveMethod (
937
937
string routeName = null ,
938
938
object routeValues = null ,
@@ -1075,15 +1075,15 @@ public virtual RedirectToPageResult RedirectToPagePermanent(string pageName, str
1075
1075
=> new RedirectToPageResult ( pageName , pageHandler , routeValues , permanent : true , fragment : fragment ) ;
1076
1076
1077
1077
/// <summary>
1078
- /// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified page with
1078
+ /// Redirects (<see cref="StatusCodes.Status307TemporaryRedirect"/>) to the specified page with
1079
1079
/// <see cref="RedirectToRouteResult.Permanent"/> set to false and <see cref="RedirectToRouteResult.PreserveMethod"/>
1080
1080
/// set to true, using the specified <paramref name="pageName"/>, <paramref name="routeValues"/>, and <paramref name="fragment"/>.
1081
1081
/// </summary>
1082
1082
/// <param name="pageName">The name of the page.</param>
1083
1083
/// <param name="pageHandler">The page handler to redirect to.</param>
1084
1084
/// <param name="routeValues">The route data to use for generating the URL.</param>
1085
1085
/// <param name="fragment">The fragment to add to the URL.</param>
1086
- /// <returns>The created <see cref="RedirectToRouteResult"/> for the response.</returns>
1086
+ /// <returns>The created <see cref="RedirectToRouteResult"/> for the response.</returns>
1087
1087
public virtual RedirectToPageResult RedirectToPagePreserveMethod (
1088
1088
string pageName = null ,
1089
1089
string pageHandler = null ,
@@ -1108,7 +1108,7 @@ public virtual RedirectToPageResult RedirectToPagePreserveMethod(
1108
1108
/// <param name="pageHandler">The page handler to redirect to.</param>
1109
1109
/// <param name="routeValues">The route data to use for generating the URL.</param>
1110
1110
/// <param name="fragment">The fragment to add to the URL.</param>
1111
- /// <returns>The created <see cref="RedirectToRouteResult"/> for the response.</returns>
1111
+ /// <returns>The created <see cref="RedirectToRouteResult"/> for the response.</returns>
1112
1112
public virtual RedirectToPageResult RedirectToPagePermanentPreserveMethod (
1113
1113
string pageName = null ,
1114
1114
string pageHandler = null ,
@@ -1207,6 +1207,8 @@ public virtual PartialViewResult Partial(string viewName)
1207
1207
/// <returns>The created <see cref="PartialViewResult"/> object for the response.</returns>
1208
1208
public virtual PartialViewResult Partial ( string viewName , object model )
1209
1209
{
1210
+ // ViewContext.ViewData is an instance of ViewDataDictionary<MyPageModel>, but we need an instance
1211
+ // of ViewDataDictionary<MyPartialViewModel>.
1210
1212
var viewData = new ViewDataDictionary ( MetadataProvider , ViewContext . ViewData . ModelState )
1211
1213
{
1212
1214
Model = model ,
0 commit comments