예제 #1
0
        public IHttpActionResult GetRoomById(int roomId)
        {
            var room = _bll.GetRoomById(roomId);

            if (room == null)
            {
                return(BadRequest());
            }
            return(Ok(room));
        }
예제 #2
0
        public void TestGetRoomById()
        {
            var result = bll.GetRoomById(1);

            Assert.IsNotNull(result);
        }