Example #1
0
        public GetExpenseResponseDto GetExpenseBySearch([FromBody] SearchExpenseRequestDto searchRequest)
        {
            if (searchRequest.PropertyId <= 0)
            {
                throw new PmsException("Property id is not valid.");
            }

            var response = new GetExpenseResponseDto();

            response.Expenses = _iPmsLogic.GetExpenseBySearch(searchRequest);

            return(response);
        }