public virtual async Task DeleteAsync(PrivateMessage privateMessage)
        {
            await _privateMessageNotificationManager.DeleteByPrivateMessageIdAsync(new[] { privateMessage.Id });

            await _repository.DeleteAsync(privateMessage, true);
        }
 private async Task <PrivateMessageDto> MapToDtoAndLoadMoreInfosAsync(PrivateMessage entity)
 {
     return((await MapToDtoAndLoadMoreInfosAsync(new[] { entity })).First());
 }
 public virtual async Task <PrivateMessage> CreateAsync(PrivateMessage privateMessage)
 {
     return(await _repository.InsertAsync(privateMessage, true));
 }