Пример #1
0
        public GetPropertyResponseDto GetPropertyByUserId(int userId)
        {
            var response = new GetPropertyResponseDto();

            if (userId <= 0)
            {
                return(response);
            }

            var properties = _iPmsLogic.GetAllProperty();

            if (properties == null || properties.Count <= 0)
            {
                return(response);
            }

            response.Properties = properties.Where(x => x.UserId.Equals(userId)).ToList();
            return(response);
        }