This commit is contained in:
mmrbnjd
2024-07-09 23:04:19 +03:30
parent 414e52f19d
commit d67a9ae440
4 changed files with 59 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ using Back.Common;
using Shared.DTOs;
namespace Back.Data.Models
{
public class Invoice
public class Invoice : ICloneable
{
#region Key
public int ID { get; set; }
@@ -178,6 +178,12 @@ namespace Back.Data.Models
[ForeignKey("CompanyID")]
[JsonIgnore]
public virtual Company? company { get; set; }
public object Clone()
{
return this.MemberwiseClone();
}
#endregion
}