private void Create(ResourceData resource, string member = "") { string url = member.IsNullOrEmpty() ? resource.BaseUrl() : resource.ItemUrl(member); Map(resource, ResourceMethod.Create, url, member, HttpVerbs.Post); }
private void Index(ResourceData resource, string collection = "") { Map(resource, ResourceMethod.Index, resource.BaseUrl(collection), collection); }