Exemple #1
0
 protected ExecutionResponse Ok(TResponse content, Dictionary <string, object> additionalData = null)
 {
     return(ExecutionResponse.CreateAsOK(content, additionalData));
 }
Exemple #2
0
 protected ExecutionResponse Status(ActionOutcome actionOutcome, TResponse content = null, Dictionary <string, object> additionalData = null)
 {
     return(ExecutionResponse.CreateAsStatus(content, actionOutcome, additionalData));
 }
Exemple #3
0
 protected ExecutionResponse NoContent()
 {
     return(ExecutionResponse.CreateAsNoContent());
 }
Exemple #4
0
 protected ExecutionResponse NotFound(TResponse content = null)
 {
     return(ExecutionResponse.CreateAsNotFound(content));
 }
Exemple #5
0
 protected ExecutionResponse BadRequest <T>(T content = default(T))
 {
     return(ExecutionResponse.CreateAsBadRequest(content));
 }
Exemple #6
0
 protected ExecutionResponse PreconditionFailed(TResponse content = null)
 {
     return(ExecutionResponse.CreateAsPreconditionFailed(content));
 }