I need to generate service contracts and I have problems with macros / mail merge and business object
My business object:
public class Contract
{
public int Id { get; set; }
public DateTime Date { get; set; }
public string Code { get; set; }
public Person Company { get; set; }
public Person Invistor { get; set; }
public List<Service> Services { get; set; }
}
public class Person
{
public int Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public string PostCode { get; set; }
public string Address { get; set; }
public string AddressNumber { get; set; }
public string Neighborhood { get; set; }
public string State { get; set; }
public string City { get; set; }
}
public class Service {
public int Id {get;set;}
public string Name {get;set;}
public decimal Price {get;set;}
}
Any contracts need all properties
Suggestion?
Attachment:
DEMO_791c6bd1.rar