public IActionResult GetClients(string app) { var response = ClientsDto.FromApp(App, this); Response.Headers[HeaderNames.ETag] = App.Version.ToString(); return(Ok(response)); }
private async Task <ClientsDto> InvokeCommandAsync(ICommand command) { var context = await CommandBus.PublishAsync(command); var result = context.Result <IAppEntity>(); var response = ClientsDto.FromApp(result, this); return(response); }
public IActionResult GetClients(string app) { var response = Deferred.Response(() => { return(ClientsDto.FromApp(App, this)); }); Response.Headers[HeaderNames.ETag] = App.ToEtag(); return(Ok(response)); }
private ClientsDto GetResponse(IAppEntity app) { return(ClientsDto.FromApp(app, Resources)); }
private ClientsDto GetResponse(IAppEntity app) { return(ClientsDto.FromApp(App, this)); }