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)); } }
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)); } }