public IHttpActionResult DeleteEmail(int id) { try { _emailEmailManager.DeleteEmail(id); } catch (ValidationException exception) { return(BadRequest(exception.Message)); } return(new StatusCodeResult(HttpStatusCode.NoContent, Request)); }