public ResourceState GetAll() { var repr = new ResourceState { self = _uriMaker.UriFor(c => c.GetAll()), next = _uriMaker.UriFor(c => c.GetPaged(1, 10)), first = _uriMaker.UriFor(c => c.GetById(0)), first_alternative = _uriMaker.UriFor(c => c.GetById(0, true)) }; return(repr); }
public Uri UriFor <TController>(Expression <Action <TController> > action) { HttpRequestMessage message = _request; var maker = new UriMaker <TController>(_context, message); return(maker.UriFor(action)); }