- Added image upload system (JPG/PNG, max 5MB) with live preview and removal option - Fixed Concurrency Exception during deletion (split transactions for reports and entries) - Optimized card layout: consistent height and height-based truncation for descriptions - Added sort direction toggle (Ascending/Descending) with arrow icons for Date, Name, and Year - Refactored HallOfFameService to use streams for Server/Wasm compatibility - Improved error handling and UI feedback for upload and delete operations
32 lines
1017 B
C#
32 lines
1017 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Oqtane.Models;
|
|
|
|
namespace SZUAbsolventenverein.Module.HallOfFame.Models
|
|
{
|
|
[Table("SZUAbsolventenvereinHallOfFame")]
|
|
public class HallOfFame : IAuditable
|
|
{
|
|
[Key]
|
|
public int HallOfFameId { get; set; }
|
|
public int ModuleId { get; set; }
|
|
public string Name { get; set; }
|
|
|
|
public int Year { get; set; }
|
|
public string Description { get; set; }
|
|
public string Image { get; set; }
|
|
public string Link { get; set; }
|
|
public string Status { get; set; } // "Draft" or "Published"
|
|
public int UserId { get; set; } // Owner
|
|
public bool IsReported { get; set; }
|
|
public string ReportReason { get; set; }
|
|
|
|
|
|
public string CreatedBy { get; set; }
|
|
public DateTime CreatedOn { get; set; }
|
|
public string ModifiedBy { get; set; }
|
|
public DateTime ModifiedOn { get; set; }
|
|
}
|
|
}
|