private void AssigneCommentToUser(IStoreCommentCommand command, StoreComment comment) { var user = _membershipRepository.GetUserById(command.UserId); comment.Users.Add(user); }
private void AssigneCommentToStore(IStoreCommentCommand command, StoreComment comment) { var store = _storeRepository.GetById(command.StoreId); comment.Stores.Add(store); }
private void AddStoreComment(IStoreCommentCommand command, StoreComment comment) { comment.Body = command.Body; AssigneCommentToStore(command, comment); AssigneCommentToUser(command, comment); }