Move people admin index to Blazor.

This commit is contained in:
2020-05-24 17:19:13 +01:00
parent 4aabb169f9
commit d4cbbae20a
10 changed files with 363 additions and 79 deletions

View File

@@ -0,0 +1,21 @@
using System;
namespace Marechai.ViewModels
{
public class PersonViewModel : BaseViewModel<int>
{
public string Name { get; set; }
public string Surname { get; set; }
public string CountryOfBirth { get; set; }
public DateTime BirthDate { get; set; }
public DateTime? DeathDate { get; set; }
public string Webpage { get; set; }
public string Twitter { get; set; }
public string Facebook { get; set; }
public Guid Photo { get; set; }
public string Alias { get; set; }
public string DisplayName { get; set; }
public string FullName => DisplayName ?? Alias ?? $"{Name} {Surname}";
}
}