Skip to content

Instantly share code, notes, and snippets.

@u3k
Created December 2, 2016 04:50
Show Gist options
  • Save u3k/d1040c23cec6fa81efe9b6c20a0cb05d to your computer and use it in GitHub Desktop.
Save u3k/d1040c23cec6fa81efe9b6c20a0cb05d to your computer and use it in GitHub Desktop.
namespace EBT.SOF.DTO
{
public class SessionDto
{
public long Id { get; set; }
....
public ValidationResultDto ValidationResult { get; set; }
}
public class ValidationResultDto
{
public bool IsValid { get; set; }
public List<ValidationMessageDto> Errors { get; set; }
public List<ValidationMessageDto> Warnings { get; set; }
}
public class ValidationMessageDto
{
public string Type { get; set; }
public string Message { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment