client edited: added list of msgs
This commit is contained in:
parent
e61380ff6b
commit
f632ebd23e
@ -23,7 +23,10 @@ namespace JewelryStoreDatabaseImplement.Models
|
|||||||
|
|
||||||
[ForeignKey("ClientId")]
|
[ForeignKey("ClientId")]
|
||||||
public virtual List<Order> Orders { get; set; } = new();
|
public virtual List<Order> Orders { get; set; } = new();
|
||||||
public static Client? Create(ClientBindingModel model)
|
|
||||||
|
[ForeignKey("ClientId")]
|
||||||
|
public virtual List<Message> Messages { get; set; } = new();
|
||||||
|
public static Client? Create(ClientBindingModel model)
|
||||||
{
|
{
|
||||||
if (model == null)
|
if (model == null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user