public ActionResult <List <JobApplicationDTO> > Get() { try { var jobApps = _jobApplicationService.GetApplications(true); var jobAppsDTO = new List <JobApplicationDTO>(); mapJobApplications(jobApps, jobAppsDTO); return(jobAppsDTO); } catch { // log here return(StatusCode(StatusCodes.Status500InternalServerError, "An error has occurred when trying to GET Job Applications. It has been logged and is being looked into.")); } }