feat: add WebMessage model and controller with CRUD endpoints #7
This commit is contained in:
16
Api/Models/WebMessage.cs
Normal file
16
Api/Models/WebMessage.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
public class WebMessage
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string? Surname { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Phone { get; set; }
|
||||
public string? Subject { get; set; }
|
||||
public string? Message { get; set; }
|
||||
[NotMapped]
|
||||
public string? RecaptchaToken { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user