コード例 #1
0
        public async Task <ActionResult <IReadOnlyCollection <EmploymentOverview> > > GetEmployments()
        {
            var allEmployments = await _service.BrowseEmploymentAsync();

            if (allEmployments.Count == 0)
            {
                return(NoContent());
            }
            return(Ok(allEmployments));
        }