public Module() { var savePlayService = new SavePlayService(); Post["/"] = _ => { this.RequiresAuthentication(); var data = this.Bind <SavePlayData>(); var result = savePlayService.Run(data); return(Negotiate .WithStatusCode(HttpStatusCode.Created) .WithModel(result)); }; }
public Module() { var savePlayService = new SavePlayService(); Post["/"] = _ => { this.RequiresAuthentication(); var data = this.Bind<SavePlayData>(); var result = savePlayService.Run(data); return Negotiate .WithStatusCode(HttpStatusCode.Created) .WithModel(result); }; }