Exemplo n.º 1
0
        public Communication Put(int id, [FromBody] Communication communication)
        {
            Communication changedCommunication = null;

            try
            {
                changedCommunication = communicationController.ChangeCommunication(id, communication);
                Response.StatusCode  = 200;
            }
            catch (Exception ex)
            {
                Response.StatusCode = 500;
                Response.WriteAsync(ex.Message);
            }
            return(communication);
        }