Beispiel #1
0
        public void TestGetEmergencyInfoByConferenceId()
        {
            var result = bll.GetEmergencyInfoByConferenceId(1);

            Assert.AreEqual(1, result.EmergencyInfoId);
            result = bll.GetEmergencyInfoByConferenceId(0);
            Assert.AreEqual(null, result);
        }
Beispiel #2
0
        public IHttpActionResult GetEmergencyInfoByConferenceId(int conferenceid)
        {
            var emergency = _bll.GetEmergencyInfoByConferenceId(conferenceid);

            if (emergency == null)
            {
                return(BadRequest());
            }
            return(Ok(emergency));
        }