コード例 #1
0
        private static void ValidateFlatToCount(int count)
        {
            Debug.Assert(roomService.GetAll().Count() == count);
            Debug.Assert(flatService.GetAll().Count() == count);
            Debug.Assert(residenceService.GetAll().Count() == count);
            Debug.Assert(houseService.GetAll().Count() == count);
            var plots = plotService.GetAll();

            Debug.Assert(plots.Count() == count);
        }
コード例 #2
0
        public IActionResult GetAll()
        {
            var result = _flatService.GetAll();

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }