public Communication Post([FromBody] Communication communication) { Communication latestCommunication = null; try { latestCommunication = communicationController.CreateRelationAndAddToDatabase(communication); Response.StatusCode = 200; } catch (Exception ex) { Response.StatusCode = 500; Response.WriteAsync(ex.Message); } return(latestCommunication); }