Exemplo n.º 1
0
        public IActionResult GetRoles(string app)
        {
            var response = RolesDto.FromApp(App);

            Response.Headers[HeaderNames.ETag] = App.Version.ToString();

            return(Ok(response));
        }
Exemplo n.º 2
0
        private async Task <RolesDto> InvokeCommandAsync(ICommand command)
        {
            var context = await CommandBus.PublishAsync(command);

            var result   = context.Result <IAppEntity>();
            var response = RolesDto.FromApp(result, this);

            return(response);
        }
Exemplo n.º 3
0
        public IActionResult GetRoles(string app)
        {
            var response = Deferred.Response(() =>
            {
                return(RolesDto.FromApp(App, this));
            });

            Response.Headers[HeaderNames.ETag] = App.ToEtag();

            return(Ok(response));
        }
Exemplo n.º 4
0
 private RolesDto GetResponse(IAppEntity result)
 {
     return(RolesDto.FromApp(result, Resources));
 }