Fixed DRY violations regarding result models

This commit is contained in:
2025-12-25 14:55:30 +01:00
parent 7298593341
commit cc93a76546
4 changed files with 32 additions and 103 deletions

View File

@@ -0,0 +1,12 @@
using System.Text.Json.Serialization;
namespace Shared.Models;
public class SuccesMessageBaseModel
{
[JsonPropertyName("Success")]
public required bool Success { get; set; }
[JsonPropertyName("Message")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Message { get; set; }
}