Exemplo n.º 1
0
        public GetFunctionalityResponseDto GetAllFunctionality()
        {
            var response = new GetFunctionalityResponseDto();

            var functionalities = _iPmsLogic.GetAllFunctionality();

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

            response.Functionalities = functionalities;
            return(response);
        }
Exemplo n.º 2
0
        public GetFunctionalityResponseDto GetFunctionalityByUserId(int userId)
        {
            var response = new GetFunctionalityResponseDto();

            if (userId <= 0)
            {
                return(response);
            }
            var functionalities = _iPmsLogic.GetFunctionalityByUserId(userId);

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

            response.Functionalities = functionalities;
            return(response);
        }