Ejemplo n.º 1
0
        public string FindZoneContainingUser(string userId)
        {
            var current = _currentLayerContracts.FirstOrDefault(c => c.UserId.Equals(userId) &&
                                                                !String.IsNullOrEmpty(c.CurrentZoneId));

            if (current != null)
            {
                return(_zoneService.GetZoneContract(current.CurrentZoneId).ZoneID);
            }
            return(null);
        }