コード例 #1
0
        public IHttpActionResult GetAssignedBuildingsForConference(int conferenceId)
        {
            var building = _bll.GetAssignedBuildingsForConference(conferenceId);

            if (building == null)
            {
                return(BadRequest());
            }
            return(Ok(building));
        }
コード例 #2
0
ファイル: RoomTest.cs プロジェクト: 2644783865/ssd-cms
        public void TestAssignedBuildingsForConference()
        {
            var result = bll.GetAssignedBuildingsForConference(1);

            Assert.AreEqual(2, result.Count());
        }