public static async Task <HttpResponseMessage> GetAsync(this Resources.Queries.RoleQuery query, HttpRequestMessage request, UrlHelper url)
 {
     return(await query.ParseAsync(request,
                                   (q) => QueryById(q.Id.ParamSingle(), request, url),
                                   (q) => QueryByIds(q.Id.ParamOr(), request, url),
                                   (q) => QueryByActorId(q.Actor.ParamSingle(), request, url)));
 }
 public async static Task <HttpResponseMessage> DeleteAsync(this Resources.Queries.RoleQuery query, HttpRequestMessage request, UrlHelper url)
 {
     return(await query.ParseAsync(request,
                                   (q) => DeleteById(q.Id.ParamSingle(), request, url)));
 }