public InvoiceForCreateDto(InvoiceDto invoiceDto)
 {
     Id         = invoiceDto.Id;
     TotalPrice = invoiceDto.TotalPrice;
     Items      = invoiceDto.Items;
     Discounts  = invoiceDto.Discounts;
     TableId    = invoiceDto.TableId;
 }
 public InvoiceDto(InvoiceDto invoice)
 {
     Id         = invoice.Id;
     TotalPrice = invoice.TotalPrice;
     TableId    = invoice.TableId;
     Table      = invoice.Table;
     Items      = new ObservableCollection <ItemForInvoiceDto>(invoice.Items.Select(t => new ItemForInvoiceDto
     {
         Id        = t.Id,
         Name      = t.Name,
         Discounts = t.Discounts,
         Quantity  = t.Quantity,
         Value     = t.Value
     }).ToList());
     Discounts = new ObservableCollection <DiscountForInvoiceDto>(invoice.Discounts.Select(t => new DiscountForInvoiceDto
     {
         Id    = t.Id,
         Name  = t.Name,
         Value = t.Value
     }).ToList());
 }