public async Task <IActionResult> GetApplicationsAsync()
        {
            try
            {
                var result = await _applicationBusinessManager.GetApplicationsAsync();

                return(Ok(result));
            }
            catch (Exception ex)
            {
                // in some cases the exception could not be sent and it is only written in log system
                return(StatusCode(500, ex));
            }
        }
Exemplo n.º 2
0
        public async Task <IHttpActionResult> GetApplicationsAsync()
        {
            try
            {
                var result = await _applicationBusinessManager.GetApplicationsAsync();

                return(Ok(result));
            }
            catch (Exception ex)
            {
                // in some cases the exception could not be sent and it is only written in log system
                return(InternalServerError(ex));
            }
        }