Removed PdfViewController, HtmlViewRenderer and FakeView to be replaced with ViewEngineResult Render method

Added HttpException class for missing HttpException for net8

Wrapped HttpContext.Session, GetJsonResult, IsAjaxRequest and GetUserIdentityName in controllers for net8

Added AuthenticationService to test Fab2ApprovalMKLink code for net8

Compile conditionally flags to debug in dotnet core
This commit is contained in:
2025-05-23 12:51:42 -07:00
parent 184e97fce3
commit 7650bf2869
85 changed files with 3655 additions and 1259 deletions

View File

@ -1,5 +1,7 @@
using System.Web;
#if !NET8
using System.Web.Mvc;
#endif
namespace Fab2ApprovalSystem;

View File

@ -3,13 +3,16 @@ using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
#if !NET8
using System.Web.Mvc;
#endif
using System.Web.Routing;
namespace Fab2ApprovalSystem;
public class RouteConfig {
public static void RegisterRoutes(RouteCollection routes) {
#if !NET8
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
@ -20,5 +23,6 @@ public class RouteConfig {
// otherwise MVC generates the wrong form action url
defaults: new { controller = "Home", action = "MyTasks", id = UrlParameter.Optional }
);
#endif
}
}

View File

@ -6,10 +6,12 @@ public static class WebApiConfig {
public static void Register(HttpConfiguration config) {
config.MapHttpAttributeRoutes();
#if !NET8
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
#endif
}
}