public virtual void AddManager(Hotel hotel, Entity currentEntity, Citizen newManager) { var rights = GetHotelRigths(hotel, currentEntity); var manager = new HotelManager() { CanBuildRooms = false, CanMakeDeliveries = false, CanManageEquipment = false, CanManageManagers = false, CanSetPrices = false, CanSwitchInto = false, CanUseWallet = false, Citizen = newManager, Hotel = hotel, Priority = 0 }; hotelManagerRepository.Add(manager); hotelManagerRepository.SaveChanges(); }