client edited: added list of msgs

This commit is contained in:
VictoriaPresnyakova 2023-04-30 19:37:01 +04:00
parent e61380ff6b
commit f632ebd23e

View File

@ -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)
{ {