public async Task <IActionResult> FindAll() { var items = await _publicationService.FindAllAsync(); // var parsedItems = items.Select(x => x.ToResponseObject()); return(Ok(items)); }
public async Task <IActionResult> GetAllAsync() { try { var items = await _publicationService.FindAllAsync(); return(Ok(items)); } catch (Exception e) { return(HttpExceptionMapper.ToHttpActionResult(e)); } }