Rename project identity from RazorPagesMovie to BewerbungsSeite
Deploy Staging / deploy (push) Successful in 1m44s
Deploy Staging / deploy (push) Successful in 1m44s
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BewerbungsSeite.Models;
|
||||
|
||||
public class AdminUser
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(100)]
|
||||
public string Username { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string PasswordHash { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BewerbungsSeite.Models;
|
||||
|
||||
public class ContactMessage
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(100)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Display(Name = "E-Mail")]
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
[StringLength(200)]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
[Display(Name = "Telefon")]
|
||||
[Phone]
|
||||
[StringLength(30)]
|
||||
public string? Phone { get; set; }
|
||||
|
||||
[Display(Name = "Betreff")]
|
||||
[Required]
|
||||
[StringLength(150)]
|
||||
public string Subject { get; set; } = string.Empty;
|
||||
|
||||
[Display(Name = "Nachricht")]
|
||||
[Required]
|
||||
[StringLength(5000)]
|
||||
public string Message { get; set; } = string.Empty;
|
||||
|
||||
[Display(Name = "Gesendet am")]
|
||||
[DataType(DataType.DateTime)]
|
||||
public DateTime SentAt { get; set; } = DateTime.Now;
|
||||
|
||||
public bool NotificationSent { get; set; } = false;
|
||||
}
|
||||
Reference in New Issue
Block a user