public ActionResult DeleteMessage(int id) { try { _repo.DeleteMessage(id); } catch (NullReferenceException) { return(NotFound("Ese ID de mensaje no existe")); } return(Ok()); }