예제 #1
0
        public Response StatusCode(StatusAndSubStatusCode statusCode)
        {
            statusCode.ThrowIfNull("statusCode");

            _statusCode = statusCode;

            return(this);
        }
예제 #2
0
 public Response(StatusAndSubStatusCode statusCode)
 {
     _statusCode = statusCode;
 }
예제 #3
0
        public Response StatusCode(HttpStatusCode statusCode, int subStatusCode = 0)
        {
            _statusCode = new StatusAndSubStatusCode(statusCode, subStatusCode);

            return(this);
        }