public List<CompanyDto> GetAll()
        {
            var entities = _companyDomainService.GetAll();
            var dtos =new List<CompanyDto>();
                 entities.ForEach(c =>
                                  {
                                      var dto = new CompanyDto()
                                                {
                                            Id=c.Id,
                                            Code=c.Code,
                                            Name=c.Name

                                                };
                                      dtos.Add(dto);
                                  });

              //  var dtos = _mapper.MapToModel(entities).ToList();

            return dtos;
        }
 public void Delete(CompanyDto data)
 {
 }
 public CompanyDto Add(CompanyDto data)
 {
     return null;
 }
 public CompanyDto Update(CompanyDto data)
 {
     return null;
 }
        public void Load(CompanyDto selectedCompany, InvoiceDto invoice)
        {
            CurrentCompany = selectedCompany;

            CurrentInvoice = invoice;
            ToDateFilter = invoice.InvoiceDate;
            FromDateFilter = invoice.InvoiceDate.AddMonths(-3);
            var uid = Guid.NewGuid();
        }
        public void Load(CompanyDto selectedCompany, InvoiceDto invoice)
        {
            CurrentCompany = selectedCompany;
            OrderListVM.Load();
            var uid = Guid.NewGuid();

            UpperDate = invoice.InvoiceDate;
            UpdatePartnerCompany(invoice.SupplierId, invoice.TransporterId);
            ToDateFilter = invoice.InvoiceDate;
            FromDateFilter = invoice.InvoiceDate.AddMonths(-3);

            invoiceType = invoice.InvoiceType;
            if (invoice.OrderRefrences == null)
                invoice.OrderRefrences = new ObservableCollection<OrderDto>();
            else
            {
                foreach (var order in invoice.OrderRefrences)
                    SelectedOrders.Add(order);
                LoadOrdersByFilters2();
            }
            changed = false;
        }
 public void ShowOrderReference(CompanyDto selectedCompany, InvoiceDto invoice)
 {
     var view = this.ViewManager.ShowInDialog<IOrderReferenceLookUp>();
     (view.ViewModel as OrderReferenceLookUpVM).Load(selectedCompany, invoice);
 }