Code refactor finished

This commit is contained in:
Michał Zieliski
2024-06-18 22:02:19 +02:00
parent 7e8406dc9b
commit 763b4a8c4d
19 changed files with 1105 additions and 1228 deletions

View File

@@ -1,25 +1,22 @@
using System.ComponentModel.DataAnnotations;
namespace WebAPI.Models;
namespace WebAPI.Models
public enum LogEntryType
{
public enum LogEntryType
{
info,
warning,
error,
}
public enum LogType {
import,
backup,
process,
powerBI
}
public class LogEntry
{
public LogType LogType { get; set; }
public LogEntryType Type { get; set; }
public string? Message { get; set; }
public string? Title {get; set;}
public DateTime CreatedAt { get; set; }
}
Info,
Warning,
Error
}
public enum LogType {
Import,
Backup,
Process,
PowerBi
}
public class LogEntry
{
public LogType LogType { get; init; }
public LogEntryType Type { get; init; }
public string? Message { get; init; }
public string? Title {get; init;}
public DateTime CreatedAt { get; init; }
}