Example #1
0
        public async Task <IActionResult> FindAll()
        {
            var items = await _publicationService.FindAllAsync();

            // var parsedItems = items.Select(x => x.ToResponseObject());

            return(Ok(items));
        }
Example #2
0
        public async Task <IActionResult> GetAllAsync()
        {
            try
            {
                var items = await _publicationService.FindAllAsync();

                return(Ok(items));
            }
            catch (Exception e)
            {
                return(HttpExceptionMapper.ToHttpActionResult(e));
            }
        }