public IActionResult GetRoles(string app) { var response = RolesDto.FromApp(App); Response.Headers[HeaderNames.ETag] = App.Version.ToString(); return(Ok(response)); }
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); }
public IActionResult GetRoles(string app) { var response = Deferred.Response(() => { return(RolesDto.FromApp(App, this)); }); Response.Headers[HeaderNames.ETag] = App.ToEtag(); return(Ok(response)); }
private RolesDto GetResponse(IAppEntity result) { return(RolesDto.FromApp(result, Resources)); }