Beispiel #1
0
 public void Post([FromBody] CreateUserUICommand command)
 {
     Execute(() =>
     {
         _userLogic.Create(command);
     });
 }
Beispiel #2
0
        public void Create(CreateUserUICommand command)
        {
            var user = new User
            {
                Name = command.Name,
            };

            using (var unitOfWork = _unitOfWorkFactory.GetCurrentUnitOfWork())
            {
                _userRepository.Add(user);
                unitOfWork.Commit();
            }
        }
Beispiel #3
0
 public void Post(CreateUserUICommand command)
 {
     _userLogic.Create(command);
 }