Moved System.IO references from DMO classes to Static Helpers

Removed nugetSource from pipeline
Removed more comments
Created Static Classes for most DMO / Controller Classes
Push ConfigurationManager.AppSettings to controller
Align Tests with other Projects
This commit is contained in:
2024-12-11 09:29:01 -07:00
parent b1c6903c1c
commit b99b721458
86 changed files with 2961 additions and 4432 deletions

View File

@ -5,22 +5,17 @@ using System.Net;
using System.Net.Http;
using System.Web.Http;
using Fab2ApprovalSystem.Misc;
using Fab2ApprovalSystem.Models;
namespace Fab2ApprovalSystem.Controllers;
public class WebAPIController : ApiController {
public TrainingController trainingFunctions = new TrainingController();
public CorrectiveActionController carFunctions;
public CorrectiveActionController carFunctions = new CorrectiveActionController();
public AccountController accountFunctions = new AccountController();
public HomeController homeFunctions;
private readonly AppSettings _AppSettings;
public WebAPIController(AppSettings appSettings) {
_AppSettings = appSettings;
carFunctions = new CorrectiveActionController(appSettings);
homeFunctions = new HomeController(appSettings);
}
public HomeController homeFunctions = new HomeController();
private readonly AppSettings _AppSettings = GlobalVars.AppSettings;
public string Get() {
return "Welcome To Web API";