+
-
+
Rate
@@ -20,12 +20,53 @@
\ No newline at end of file
+
+
+
+
diff --git a/Controllers/API/CentralDbContext.cs b/Controllers/API/CentralDbContext.cs
new file mode 100644
index 0000000..8a22eaa
--- /dev/null
+++ b/Controllers/API/CentralDbContext.cs
@@ -0,0 +1,7 @@
+namespace PSTW_CentralSystem.Controllers.API
+{
+ public class CentralDbContext
+ {
+ public object Users { get; internal set; }
+ }
+}
\ No newline at end of file
diff --git a/Controllers/API/OvertimeAPI.cs b/Controllers/API/OvertimeAPI.cs
new file mode 100644
index 0000000..9ff4ed1
--- /dev/null
+++ b/Controllers/API/OvertimeAPI.cs
@@ -0,0 +1,44 @@
+using Azure.Core;
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Identity;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.EntityFrameworkCore;
+using Mono.TextTemplating;
+using Newtonsoft.Json;
+using PSTW_CentralSystem.Areas.OTcalculate.Models;
+using PSTW_CentralSystem.Controllers.API;
+using PSTW_CentralSystem.DBContext;
+using PSTW_CentralSystem.Models;
+using System.ComponentModel.Design;
+using System.Data;
+using System.Diagnostics;
+using System.Reflection;
+using static System.Collections.Specialized.BitVector32;
+
+namespace PSTW_CentralSystem.Controllers.API
+{
+ [ApiController]
+ [Route("[controller]")]
+ public class OvertimeAPI : Controller
+ {
+ private readonly ILogger
_logger;
+ private readonly CentralSystemContext _centralDbContext;
+ private readonly UserManager _userManager;
+
+ public OvertimeAPI(ILogger logger, CentralSystemContext centralDbContext, UserManager userManager)
+ {
+ _logger = logger;
+ _centralDbContext = centralDbContext;
+ _userManager = userManager;
+ }
+
+ public class UserDetails
+ {
+ public required string FullName { get; set; }
+ public int DepartmentId { get; set; }
+
+
+
+ }
+ }
+}
diff --git a/Controllers/API/Reporting/ReportingAPI.cs b/Controllers/API/ReportingAPI.cs
similarity index 98%
rename from Controllers/API/Reporting/ReportingAPI.cs
rename to Controllers/API/ReportingAPI.cs
index bcd6291..dea8cd6 100644
--- a/Controllers/API/Reporting/ReportingAPI.cs
+++ b/Controllers/API/ReportingAPI.cs
@@ -6,7 +6,7 @@ using PSTW_CentralSystem.Areas.Inventory.Models;
using PSTW_CentralSystem.DBContext;
using PSTW_CentralSystem.Models;
-namespace PSTW_CentralSystem.Controllers.API.Reporting
+namespace PSTW_CentralSystem.Controllers.API
{
[ApiController]
[Route("[controller]")]
diff --git a/PSTW_CentralSystem.csproj b/PSTW_CentralSystem.csproj
index bf76018..322365c 100644
--- a/PSTW_CentralSystem.csproj
+++ b/PSTW_CentralSystem.csproj
@@ -34,8 +34,8 @@
-
+