public void Put([FromBody] UpdateUserUICommand command) { Execute(() => { _userLogic.Update(command); }); }
public void Update(UpdateUserUICommand command) { var user = _userRepository.Get(command.Id); user.Name = command.Name; using (var unitOfWork = _unitOfWorkFactory.GetCurrentUnitOfWork()) { _userRepository.Edit(user); unitOfWork.Commit(); } }
public void Put([FromBody] UpdateUserUICommand command) { { _userLogic.Update(command); } }
public void Put(UpdateUserUICommand command) { _userLogic.Update(command); }