public async Task <User> CreateAsync(User entity) { try { await userValidator.ValidateAddAsync(entity).ConfigureAwait(false); userRepository.Add(entity); await userRepository.SaveChangesAsync().ConfigureAwait(false); return(entity); } catch (Exception e) { throw new BusinessLogicException(e.Message); } }