public async Task <IActionResult> DeleteEmailMessage(int emailMessageId) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { await _emailMessageService.DeleteUserMessageAsync(emailMessageId, UserId); return(NoContent()); } catch (Exception e) { return(BadRequest(e.Message)); } }