Пример #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);
Пример #6
0
 public Task <IActionResult> GetStatus([FromRoute] Id id, [FromServices] IQueryServer queries) =>
 queries.Get <DealerDetailsQuery>(id);