public Models.IResponse Get(Models.IRequest request) { Models.Messages.RPCResponse response = new Models.Messages.RPCResponse() { Id = request.Id }; switch (request.Method.ToUpper()) { //Get peers that user knows about case "GetPeers": response.Result = PlayerRepo.All(); break; //Get my tables case "GetTables": response.Result = TableRepo.All(); break; case "GetHands": throw new NotImplementedException(); //break; default: response.Error = new Models.Messages.Code() { code = "-32601", message = "method not found" }; break; } return(response); }