Exemplo n.º 1
0
        public async Task <ActionResult <SortJob[]> > GetJobs()
        {
            try
            {
                var response = await Task.Run(() => _sortJobProcessor.GetAllSortJobs());

                return(Ok(response));
            }
            catch (Exception ex)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message));
            }
        }