mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Move news admin index to Blazor.
This commit is contained in:
@@ -29,11 +29,14 @@
|
||||
*******************************************************************************/
|
||||
|
||||
using System;
|
||||
using Marechai.Database;
|
||||
|
||||
namespace Marechai.ViewModels
|
||||
{
|
||||
public sealed class NewsViewModel
|
||||
public sealed class NewsViewModel : BaseViewModel<int>
|
||||
{
|
||||
public NewsViewModel() { }
|
||||
|
||||
public NewsViewModel(int affectedId, string text, DateTime timestamp, string controller, string itemName)
|
||||
{
|
||||
AffectedId = affectedId;
|
||||
@@ -43,10 +46,11 @@ namespace Marechai.ViewModels
|
||||
ItemName = itemName;
|
||||
}
|
||||
|
||||
public int AffectedId { get; }
|
||||
public NewsType Type { get; set; }
|
||||
public int AffectedId { get; set; }
|
||||
public string Controller { get; }
|
||||
public string ItemName { get; }
|
||||
public string Text { get; }
|
||||
public DateTime Timestamp { get; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user