public void PostEmail([FromBody] string email) { try { //Send the confirmation mail.SendConfirmation(email); } catch (Exception ex) { //log the error throw ex; } }