This commit is contained in:
2020-11-23 20:35:39 +00:00
parent 73c73fd1ed
commit 3eef1ec0e4
5 changed files with 360 additions and 8 deletions

View File

@@ -7,17 +7,17 @@ using Newtonsoft.Json;
namespace AyaNova.Models
{
public class CustomerNote
public class CustomerNote
{
public long Id { get; set; }
public uint Concurrency { get; set; }
public uint Concurrency { get; set; }
[Required]
public long CustomerId { get; set; }
[Required]
public long UserId { get; set; }
[Required]
public DateTime NoteDate { get; set; }
public string Notes { get; set; }
public string Notes { get; set; }
public List<string> Tags { get; set; }
@@ -30,7 +30,10 @@ namespace AyaNova.Models
[NotMapped, JsonIgnore]
public AyaType AyaType { get => AyaType.CustomerNote; }
[JsonIgnore]//hide from being returned (as null anyway) with User object in routes
[JsonIgnore]
public Customer Customer { get; set; }
[JsonIgnore]
public User User { get; set; }
}//eoc