Added delete records.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-12-06 11:34:04 -07:00
parent 22dfe5eb04
commit 1b736b36f8
9 changed files with 304 additions and 63 deletions

View File

@@ -56,13 +56,13 @@ namespace CarCareTracker.Models
var recordType = actionTypeParts[0];
var recordAction = actionTypeParts[1];
var thirdPart = actionTypeParts[2];
if (recordAction == "delete")
if (recordAction == "add")
{
recordAction = "DELETED";
recordAction = "ADDED";
}
else
{
recordAction = $"{recordAction.ToUpper()}ED";
recordAction = $"{recordAction.ToUpper()}D";
}
if (thirdPart == "api")
{