示例#1
0
 public static Task <IActionResult> Get <T>(this IQueryServer server, Id id) where T : Query =>
 server.Get(typeof(T), id);
示例#2
0
 public static Task <IActionResult> Get <T>(this IQueryServer server, string id) where T : Query =>
 server.Get(typeof(T), Id.From(id));
示例#3
0
 public static Task <IActionResult> Get <T>(this IQueryServer server) where T : Query =>
 server.Get(typeof(T), Id.Unassigned);
示例#4
0
 public static Task <IActionResult> Get(this IQueryServer server, Type type, string id) =>
 server.Get(type, Id.From(id));
示例#5
0
 public static Task <IActionResult> Get(this IQueryServer server, Type type) =>
 server.Get(type, Id.Unassigned);
 public Task <IActionResult> GetStatus([FromRoute] Id id, [FromServices] IQueryServer queries) =>
 queries.Get <DealerDetailsQuery>(id);