/// <summary>
 /// Gets the view paths of the given controller.
 /// </summary>
 /// <param name="controller">The controller.</param>
 private static IEnumerable <string> GetViewLocations(Controller controller)
 {
     return(ControllerExtensions.GetControllerViewEngineLocations(controller, v => v.ViewLocationFormats));
 }
 /// <summary>
 /// Gets the partial view paths of the given controller.
 /// </summary>
 /// <param name="controller">The controller.</param>
 public static IEnumerable <string> GetPartialViewLocations(this Controller controller)
 {
     return(ControllerExtensions.GetControllerViewEngineLocations(controller, v => v.PartialViewLocationFormats));
 }