public IHttpActionResult GetRoomById(int roomId) { var room = _bll.GetRoomById(roomId); if (room == null) { return(BadRequest()); } return(Ok(room)); }
public void TestGetRoomById() { var result = bll.GetRoomById(1); Assert.IsNotNull(result); }