示例#1
0
        public House GetMaxConsumedHouse(DateTime startDate, DateTime endDate)
        {
            var house = m_houseRepository.GetMaxConsumedHouse(startDate, endDate);

            if (house == null)
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound));
            }

            return(house);
        }