Exemplo n.º 1
0
        public async Task <IActionResult> Get(
            [FromQuery] DocumentGroupTypeEnum documentGroupType, [FromQuery] DocumentStatusEnum documentStatus,
            [FromHeader] Guid personUniqueId,
            [FromQuery] DataSourceLoadOptionsImpl options,
            [FromServices] DocumentsManager manager)
        {
            using (var repository = new Repository <Document>(_provider)) {
                var query = await manager.GetMyDocumentsAsync(User.Identity.Name, personUniqueId, documentGroupType, documentStatus, repository);

                return(this.JsonEx(DataSourceLoader.Load(query, options)));
            }
        }