Ejemplo n.º 1
0
 public static Negotiator Success(this Negotiator negotiator, object response = null, MetaData metadata = null)
 {
     var negotiate = negotiator.WithStatusCode(HttpStatusCode.OK);
     return negotiate.WithModel(new AcgResponse(response, metadata ?? new DefaultMetaData()));
 }
Ejemplo n.º 2
0
 public static Negotiator Success(this NancyModule module, object response = null, MetaData metadata = null)
 {
     return module.Negotiate.Success(response, metadata);
 }