public HttpResponseMessage GetScheme([FromUri] int id) { var scheme = _entityLogic.GetSingle(c => c.Id == id, c => c.TransactionType, c => c.Channel, c => c.Route, c => c.Fee); return(Request.CreateResponse(HttpStatusCode.OK, scheme)); }
public HttpResponseMessage GetSourceNode([FromUri] int id) { var sourceNode = _entityLogic.GetSingle(c => c.Id == id); return(Request.CreateResponse(HttpStatusCode.OK, sourceNode)); }
public HttpResponseMessage GetRoute([FromUri] int id) { var route = _entityLogic.GetSingle(c => c.Id == id, c => c.SinkNode); return(Request.CreateResponse(HttpStatusCode.OK, route)); }