What is the difference between a Response Object and DTO in software architecture? Say I want to get a list of Products in a catalog.
If ProductDTO is this, how is a Product Response class different? Is a Product Response typically just a wrapper on DTO with datetime, error log, or guid, or what is the prime difference? Would like to hear architectural difference between the two.
public class ProductDto
{
public int ProductId { get; set;},
public string ProductName { get; set;},
public string ProductDescription { get; set;},
public float SalesAmount { get; set;}
}
Resources below do not have specific answer to question,
Data Objects for each layer(DTO vs Entity vs Response objects)
Note: Question is rejected on Stackoverflow (its more architectural question), so posting here.