Пример #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()));
 }
Пример #2
0
 public static Negotiator Success(this NancyModule module, object response = null, MetaData metadata = null)
 {
     return module.Negotiate.Success(response, metadata);
 }