Example #1
0
        public async Task <Domain.Models.User> AddUserAsync(AddUserRequest userRequest, CancellationToken token)
        {
            var user = new Domain.Models.User(userRequest);

            _userUnitOfWork.Users.RegisterNew(user);
            await _userUnitOfWork.Complete(token);

            return(user);
        }