Hello Steve,
I downloaded and installed the Amazon AWS SDK .NET.
It has a few things that is nicer to follow.
In this case I decide to define user as follows:
public class UserDto{
public string Username;
public string Email;
public string[] Roles;
}
I am sending only the role names.
I think in sometimes I might have more DTOs inside the request.
For example:
public class CreateUserRequest : Request{
public UserDto User;
public class UserDto{
public string Username;
public string Email;
public string[] Roles;
public PaperDTO Paper;
public AddressDTO Address;
}
public class PaperDto{
public string Title;
public byte[] Data;
public bool Published;
}
}
public class AddressDto {
public string Sreet;
public string PostalCode;
public string City;
public string Country;
}
So UserDto and PaperDto are in the request.
But AddressDto is global so used in many requests.
I think this makes sense. If I am missing something just let me know.
--
Thank You,
Miguel