Adding authentication and authorization flow

This commit is contained in:
2025-02-26 22:23:15 +01:00
parent 176f149be3
commit 76779afd2e
22 changed files with 562 additions and 19 deletions

View File

@@ -37,6 +37,12 @@ namespace BasicDotnetTemplate.MainProject.Controllers
return StatusCode((int)HttpStatusCode.OK, CreateResponse(HttpStatusCode.OK, message, data));
}
protected IActionResult NotModified(string message, object? data = null)
{
message = String.IsNullOrEmpty(message) ? "Not modified" : message;
return StatusCode((int)HttpStatusCode.NotModified, CreateResponse(HttpStatusCode.NotModified, message, data));
}
protected IActionResult NotFound(string message, object? data = null)
{
message = String.IsNullOrEmpty(message) ? "Not found" : message;