Exemplo n.º 1
0
        public void AddShopManager(Shop shop, Guid userGuid, Guid newManagaerGuid, List <bool> priviliges)
        {
            var newManager = new ShopOwner(newManagaerGuid, userGuid, shop.Guid, priviliges);

            shop.AddShopManager(newManager);
            _unitOfWork.ShopRepository.Update(shop);
        }