///// <summary> ///// Performs customer registration ///// </summary> ///// <param name="registrationDto">Customer registration details</param> ///// <returns>Registered customer account ID, empty if unsuccessful</returns> public async Task <Guid> RegisterUser(UserRegistrationDto registrationDto) { using (var uow = UnitOfWorkProvider.Create()) { try { var accountId = await _userLoginService.RegisterUserLoginAsync(registrationDto); await uow.Commit(); return(accountId); } catch (ArgumentException) { throw; } } }